Skip to content

ArveH/TestSecuringBlazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestSecuringBlazor

A recipe for securing your Blazor App

Securing a normal ASP.NET Core 3.1 web app is easy. You just AddAuthentication in your Startup.cs file, then add the [Authorize] attribute to whatever controller you want to secure. Everything is handled for you. Same with the AntiForgery token, just add an attribute.

When you switch to a Blazor App, not so much. I created a blog post on how I managed to get it to work, and this is the code I used.

The blog post can be found here: https://arvehansen.net/codecave/2020/10/19/securing-blazor-server-app-using-identityserver4/

About

Recipe for securing a Blazor App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published