I am working on implementing token based security for the asp.net web form website and webapi.
The website should work with session token with claims based identity. The website should do ajax request to the web api.
This is what I have implemented so far:
Use thinktecture v2 STS as token provider for oauth2 resource owner access token
Website request a token
var client = new OAuth2Client( new Uri("https://xxxx/issue/oauth2/token"), "clientid", "secret"); var response = client.RequestAccessTokenUserName( "xxxx", "yyyy", "urn:webapisecurity"); return response.AccessToken;
Question: How to now make website use session token and extract claims from the above token received.