Hi,
I have a set of claims in IClaimsIdentity object. There are claims like: username, email.
Now I would like to login to Sharepoint that user based on claims. How can I do it?
I use some code like below:
FederatedAuthentication.SessionAuthenticationModule.WriteSessionTokenToCookie(..) SPFederationAuthenticationModule.Current.SetPrincipalAndWriteSessionToken(..)
Unfortunatelly in first example when I redirect after this line nothing happens (user is not logged in).
In the second example when I pass SecurityToken there is an error: "Barear token is required".
Please help.