I checked the Custom Security example for Angular and was able to use the code in CustomSecurity.cs to achieve most of the functionality I needed, but several aspects did not work. I was not able to implement in Blazor the equivalent of the 3 controllers found in your example in Server/Controllers/CustomSecurity.
Would you provide a working example of CustomSecurity implementation in a Server side Blazor app?
Those controllers shouldn't be required as they are the default generated ones. Everything is in the CustomSecurity.cs file - it event contains a custom Startup to register the custom implementations.
The page Application Users did not return any user though I was able to add new users and to login with the users I had added. I noticed that the public IQueryable Users property in my CustomSecurity.cs file never got invoked.
Minor detail, the app crashed when using admin because the ApplicationUser created has an Id that cannot be converted to an int. I corrected this by a change in th eLogin method of AccountController.cs by replacing
Also, which fields from the AspNetUser table do I need to reproduce in my own custom User table? I have Username, Email, EmailConfirmed, Passwordhash. But what about the other fields such as AccessFailedCount, ConcurrencyStamp etc...
One issue though with your CustomSecurity application for Blazor: when I try to configure the access of a page, my custom roles do not appear and it says "No roles found. Run the application to add some roles" though I have 3 roles.
Is it possible for the custom roles to integrate in the IDE?