WIF: whr parameter is a hint for user Home Realm
Yesterday i was reading the Claims Based Identity & Access Control Guide and learned that the whr parameter is a hint from the application to the STS about the user’s STS. So if i look back at the code in WIF: Change STS per request i should not hardcode the HomeRealm parameter to timvw but use the company name instead.
string GetRedirectUrl(string company, string companySts, string realm, string returnUrl)
{
var signInRequestMessage = new SignInRequestMessage(new Uri(companySts), realm)
{
Context = returnUrl,
HomeRealm = company
};
return signInRequestMessage.WriteQueryString();
}