Using AuthP in WebApi is not working showing No service for type 'Microsoft.AspNetCore.Identity.UserManager #70
Unanswered
nasir-adappt
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @nasir-adappt, The AuthP library implements its own Roles system - see this article for how this works. That means you don't use the Individual Account security Roles. You get the error because your individual user accounts database doesn't match the database that the PS. There are some useful documentation on Permissions and AuthP Roles in the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement the AuthP library in my .NET 6 WebApi project. I have used ASP.NET Core Identity for Individual Account security. I have two custom Identity classes which are:
ApplicationUser extended from IdentityUser and
ApplicationRole extended from IdentityRole
Now I have installed the AuthP library in my project and added the below code for configuration:
But whenever I run the project I get the below error:
No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' has been registered.
Please help me to solve the problem
Beta Was this translation helpful? Give feedback.
All reactions