Hello, we use a new Blazor App with Windows Authentication - we have a table on the SQLServer where all the users are saved (Domain/Username) and now we want to restrict the access to the Blazor App to only that users.
Is there a possibilty to catch some like a "after authenticated" event and there we can add our logic for that?
we have also extended the ApplicationUser class with properties which one we want to set in that event...
I am not sure I understand your question. Did you manually add windows security to your application? Normally ASP.NET Identity security and Windows security don't mix and match. We have windows authentication planned for next year.
In that case you need to check here. This is the only supported way to specify which users or groups have access. Perhaps it would be easier for you to add the authorized users to a Windows group.
I have added it to the generation ignore list and then the code is not changed - only if I change the security to none then the file was deleted - is that the expected behaviour?