Prevent OAuth2 scheme from returning a cookie
iKingNinja
60
Reputation points
I have the cookie and 2 OAuth2 schemes configured in my authentication flow. I want to use the first OAuth2 scheme to sign-in/sing-up the user and the second one just to retrieve their data and save it into the database. I don't want the second OAuth2 scheme to return the authentication cookie as it overwrites the one generated by the first one.
If this is not possible is the proper solution merging the ClaimsPrincipal
s and then set the merge as OAuthCreatingTicketContext.Principal
?
Code: https://pastebin.com/PN1hdzid (Pasting the code here weirdly cuts out some parts)
Sign in to answer