Closed mmillican closed 5 years ago
If you add a IRoleValidator<Role>
before calling AddIdentity, it should skip adding the default one. Alternatively i believe you can remove service registrations directly as well, but try adding yours first
Thanks @HaoK! That did the trick.
I also had to change the unique index on the Roles table as well.
I am trying to create a custom role validator to support pseudo-multi-tenancy (which I know is not officially supported in Identity) and am running into some issues.
I've verified that my validator does work and is being called. However, the default validator appears to be called also.
Here's my Identity service registration
How can I remove the default RoleValidator?