Skip to content

Multiple authentication providers #66

Answered by JonPSmith
pwojee asked this question in Q&A
Discussion options

You must be logged in to vote

hi @pwojee,

ASP.NET Core allows multiple authentication and you can intercept the OpenId OnTokenValidated event (see AzureAdOpenIdExtension of your two authentication providers to link the AuthP user.

AuthP provides a way to register a single Azure AD and sets up the OnTokenValidated event code, but you can manually add another by adding the AzureAdOpenIdExtension to the OnTokenValidated event of the second Azure AD.

AuthP relies on the userId of a user. There are various ways to set up a AuthP user - I suggest you look at the article Three ways to securely add new users to an application using the AuthP library for an overview and then the AuthP documentation for the details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pwojee
Comment options

Answer selected by pwojee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants