Aspnetcore.docs: Token Based Authorization using IdentityServer with Blazor

Created on 6 Sep 2019  Â·  10Comments  Â·  Source: dotnet/AspNetCore.Docs

From @noufionline ...

Kindly provide a working sample or comprehensive documentation on how to use Token based authorization using IdentityServer and how to store Access Token and Refresh Token on the client side?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Blazor P1 Source - Docs.ms doc-enhancement

Most helpful comment

The blazor IdM impl and Steve's doc are great, but as long as we're addressing IdentityServer here, be sure not to forget another important IdP in that doc: Azure, AAD and AADB2C. The current doc page is a bit thin on AuthN solutions available to blazor-clients: how to redirect to an AADB2C OpenID-Connect flow for example (blazor-client and server interaction necessary here). This, I'm assuming (currently trying to impl.) would work similar to a pure javascript auth library for OAuth/OpenID such as that provided by Auth0. Optimal would be a Blazor.net SPA-Component from AAD B2C just like the JS ones you get off the shelf from Auth0 and Okta...? Thanks

All 10 comments

The blazor IdM impl and Steve's doc are great, but as long as we're addressing IdentityServer here, be sure not to forget another important IdP in that doc: Azure, AAD and AADB2C. The current doc page is a bit thin on AuthN solutions available to blazor-clients: how to redirect to an AADB2C OpenID-Connect flow for example (blazor-client and server interaction necessary here). This, I'm assuming (currently trying to impl.) would work similar to a pure javascript auth library for OAuth/OpenID such as that provided by Auth0. Optimal would be a Blazor.net SPA-Component from AAD B2C just like the JS ones you get off the shelf from Auth0 and Okta...? Thanks

Great. Clear Identity Management practices, a basis for security and privacy, is the sign of a production-ready design.

@guardrex this is something @javiercn is planning to provide content for.
Please hold off from doing anything here till you get the info from @javiercn.

@javiercn do you have a separate item tracking your piece of work here?

Is there a "standard" sample on how one would use Blazor WebAssembly + ASP Core API with Identity server? I mean a common case scenario, probably with JWT tokens?

@javiercn did you have a sample like this somewhere ?

@mkArtakMSFT I do have a sample, but nothing that I want to share in its current form.

@guardrex I think this should be closed. We have https://docs.microsoft.com/en-us/aspnet/core/security/blazor/webassembly/hosted-with-identity-server?view=aspnetcore-3.1. Let us know though if you think something is still missing!

Was this page helpful?
0 / 5 - 0 ratings