Sample razor pages for managing Identity roles, claims, & policies

David Thielen 2,486 Reputation points
2023-04-24T18:39:02.29+00:00

Hi all;

I've added the Identity scaffold to my Blazor Server (version 7) app. Works great for registering users. But now I need to set up roles & claims and then apply policies to pages. Is there a library or example or something that provides all the pages needed to CRUD all this? Preferably as Blazor (razor) files. But if it's MVC that gets added to the existing Identity MVC files, that'll work too. ??? - thanks - dave

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,314 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,462 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 59,551 Reputation points
    2023-04-24T19:05:14.41+00:00

    currently the Identity scaffolding uses razor pages rather than a blazor app. the razor pages are built in to the package. you can override the pages:

    https://andrewlock.net/customising-aspnetcore-identity-without-editing-the-pagemodel/


  2. Bruce (SqlWork.com) 59,551 Reputation points
    2023-04-24T19:05:18.93+00:00

    currently the Identity scaffolding uses razor pages rather than a blazor app. the razor pages are built in to the package. you can override the pages:

    https://andrewlock.net/customising-aspnetcore-identity-without-editing-the-pagemodel/

    0 comments No comments