Skip to content

Adding OAuth2 to Identity Library #59943

Answered by ahelland
DavidThielen asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to go with standards (which is kinda recommended) there is an article here on how to add OpenID Connect for login:
https://learn.microsoft.com/en-us/aspnet/core/blazor/security/blazor-web-app-with-oidc?view=aspnetcore-9.0&pivots=without-bff-pattern

Basically just replace values for the Identity Provider you want, and you can present links accordingly to the users. It can get complicated to maintain multiple providers in one app though, so depending on your specific use case it might make sense to use an intermediary like Entra External ID. (Your app only integrates with Entra and Entra integrates with Google, Meta, Apple, etc.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DavidThielen
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants