Split MapIdentityApi<TUser>() into multiple APIs and allow selective end points to be enabled #55792
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-identity
Includes: Identity and providers
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-identity-apis
Milestone
Background and Motivation
The Identity API endpoints are a much need addition to Identity framework. The current API endpoint route implementation (IdentityApiEndpointRouteBuilderExtensions.cs) has a single API to add all/multiple endpoints to the pipeline.
It would great to have control on which endpoints will be available if we don't want to have some functionality in the application.
A way to allow individual API endpoints to be added will help in plenty of scenarios.
Proposed API
Usage Examples
We can add the required mapping for each endpoint.
Alternative Designs
We have the option of adding the full code from this URL into the project and remove the unwanted parts. But that's not a great experience.
https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Core/src/IdentityApiEndpointRouteBuilderExtensions.cs
Risks
Nothing that I can think of.
The text was updated successfully, but these errors were encountered: