Reusable Razor pages and views for Blazor Applications
This library replaces the LoginIDP and LogoutIDP pages from Kevin Dockx's pluralsight course:
Authentication and Authorization in Blazor Applications by Kevin Dockx
In his Pluralsight course, Kevin demonstrates using the LoginIDP and LogoutIDP pages to support hybrid flow operations between the Blazor Server application and IdentityServer.
This library allows you to use Kevin's design pattern without needing to create the LoginIDP and LogoutIDP pages for every one of your applications.\
Invokes HttpContextChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme), triggering the redirect to the IdentityServer login page. If there is already a User signed in, they are redirected to the application root.
Invokes SignOutAsync for both the Cookie and OpenIdConnect authentication schemes.
The Demo project is based on Kevin's demo project with several modifications:
- Upgraded project to .NET CORE version 3.1
- Deleted LoginIDP and LogoutIDP pages from project
- Added Reference to BlazorRazor nuget package