Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpContext.GetTokenAsync("access_token")
- AuthenticationProperties authProp = new AuthenticationProperties();
- authProp.StoreTokens(new List<AuthenticationToken>
- {
- new AuthenticationToken { Name = OpenIdConnectParameterNames.IdToken, Value = newIdToken },
- new AuthenticationToken { Name = OpenIdConnectParameterNames.AccessToken, Value = newAccessToken },
- new AuthenticationToken { Name = OpenIdConnectParameterNames.RefreshToken, Value = newRefreshToken },
- new AuthenticationToken { Name = OpenIdConnectParameterNames.AcrValues, Value = string.Format("idp:{0} email:{1}", model.Provider, model.Email) }
- });
- SignIn(new ClaimsPrincipal(identity), authProp, "oidc");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement