© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
Arch Leaders

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
/register
/register
to be public, I would like it to require an
Admin
Admin
claim. Is this possible?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

ASP.NET Core Identity?
C#CC# / help
3y ago
asp.net core Identity ApplicationDbContext error
C#CC# / help
3y ago
❔ asp.net core auth in endpoint
C#CC# / help
3y ago
✅ Hashing password - ASP.NET Core Identity PasswordHasher
C#CC# / help
3y ago