-
Does this solution work if I have both Azure AD and Azure AD B2C configured as authentication providers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
hi @pwojee, ASP.NET Core allows multiple authentication and you can intercept the OpenId AuthP provides a way to register a single Azure AD and sets up the 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. |
Beta Was this translation helpful? Give feedback.
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 theOnTokenValidated
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.