Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. HttpContext.GetTokenAsync("access_token")
  2.  
  3. AuthenticationProperties authProp = new AuthenticationProperties();
  4. authProp.StoreTokens(new List<AuthenticationToken>
  5. {
  6. new AuthenticationToken { Name = OpenIdConnectParameterNames.IdToken, Value = newIdToken },
  7. new AuthenticationToken { Name = OpenIdConnectParameterNames.AccessToken, Value = newAccessToken },
  8. new AuthenticationToken { Name = OpenIdConnectParameterNames.RefreshToken, Value = newRefreshToken },
  9. new AuthenticationToken { Name = OpenIdConnectParameterNames.AcrValues, Value = string.Format("idp:{0} email:{1}", model.Provider, model.Email) }
  10. });
  11.  
  12. SignIn(new ClaimsPrincipal(identity), authProp, "oidc");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement