Restrict register endpoint using ASP.NET Core Identity
I'm using ASP.NET Core Identity as my authentication flow in a simple Web API. However, because the register/login/etc endpoints are automatically created, I can't restrict any of the endpoints like I usually would.
Is there a way to configure the default requirements (claims) for any one of the auto-generated endpoints?
For example, I don't want
Is there a way to configure the default requirements (claims) for any one of the auto-generated endpoints?
For example, I don't want
/register to be public, I would like it to require an Admin claim. Is this possible?