I haven't touched ADFS before so this is totally new to me. I've done some reading on this but not sure if I'm doing this correctly.
I didn't set up ADFS so I'm not exactly sure what as done but i've been told that a rule has been set up for an email claim. And that everything is working.
Then I've been told that I should be able to log-in to a page and once authenticated - i can go to the URL that will check the claims. This is where i am a bit confused.
From my reading - doing the following code should loop through the claims that the logged-in user should be associated to:
foreach (Claim c in ClaimsPrincipal.Current.Claims)
{
//Loop through each claim
}
What i've found is the email claim is not in the collection of claims. What I do see is my domain and username of the computer that I'm logged into as the identity claim "name". Shouldn't that name be the LiveID that was successfully authenticated?
Have i misunderstood the simplicity of this and that there is more code that i need to do before i can see the proper claim? Or could the setup of the claim be incorrect? thanks.