Skip to content

Login and Logout views to integrate Blazor Server applications with IdentityServer Auth Code flow.

License

Notifications You must be signed in to change notification settings

Tricklebyte/BlazorRazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlazorRazor

Reusable Razor pages and views for Blazor Applications

Blazor Server App support for IdentityServer authorization code and hybrid flows

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.\

LoginIDP.cshtml / LogIDP.cs

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.

LogoutIDP

Invokes SignOutAsync for both the Cookie and OpenIdConnect authentication schemes.

Demo

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

About

Login and Logout views to integrate Blazor Server applications with IdentityServer Auth Code flow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •