This repo contains Sample code supporting my Blazor blog series https://nahidfa.com/tags/blazor/
The post-1-latest
branch contains sample code for Blazor WebAssembly authentication and authorization with IdentityServer4.
Solution structure:
- BlazorSecurity.sln
- IdentityServer.csproj
- WasmAppAuth.csproj
The post-2-latest
branch contains sample code for Blazor WebAssembly - Calling a protected API using access token.
Solution structure:
- BlazorSecurity.sln
- IdentityServer.csproj
- WasmAppAuth.csproj
- Api.csproj
- Models.csproj
The post-3-latest
branch contains sample code for Blazor WebAssembly - Role-based and Policy-based authorization.
Solution structure:
- BlazorSecurity.sln
- IdentityServer.csproj
- WasmAppAuth.csproj
- Api.csproj
- Models.csproj