Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Problem with login to Sharepoint

$
0
0

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.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>