I am calling a service, and I need to pass the user\'s permanent security token with every request I make.
In order to do that, I\'ve added this method to my base
If User.Identity
outlasts the Session, why not store the token as a Claim
in the Identity? Something like:
var claims = new[]
{
new Claim("access_token", string.Format("Bearer {0}", token)),
};
var identity = new ClaimsIdentity(claims, DefaultAuthenticationTypes.ApplicationCookie);
Request.GetOwinContext().Authentication.SignIn(options, identity);