-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement in razor page #14
Comments
At the moment |
i found filters for razor pages from Microsoft's docs but i don't know how to implement it. Would you like to please review it? Filter methods for Razor Pages in ASP.NET Core: |
@imtiazahmeddahar Ok sure, I'll guide you on how to implement dynamic auth in |
Hi mo-esmp. Firstly thanks for the great repo. I have followed your manual branch implementation in a project I'm using but also ran into the razor page issue as I'm using idenitiy scaffolded pages. Could you please post your suggestions / guide for implementing the fix for razor pages? |
Hey @shaunVorster, |
Hey @mo-esmp. Thanks very much for the reply. I will check it out. |
i have created new MVC core 3.1 application with razor identity. when i run the application and i'm getting this error:
InvalidCastException: Unable to cast object of type 'Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor' to type 'Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor'.
SchoolManagementSystem.ExtentionMethods.DynamicAuthorizationFilter.IsProtectedAction(AuthorizationFilterContext context) in DynamicAuthorizationFilter.cs, line 66
please guide me, how can i implement DynamicRoleBasedAuthorizationNETCore in razor pages as well.
The text was updated successfully, but these errors were encountered: