Open akordowski opened 2 weeks ago
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
It would be beneficial to have an option to either disable endpoints or fully customize them via delegates. My primary issue with the API was the inability to implement login via email. This limitation stems from the current design, which searches for users by username as seen here:
And honestly it's also really confusing that the api asks for an email but searches for the username. Maybe this should be an issue after all?
Background and Motivation
Although the Identity API is highly customizable one feature I am missing is the possibility to customize the Identity API endpoints. I copied the exisitng code and changed it to my needs. Below you can find the changes. If you find this feature usefull I would appreciate it if it be added to the code base.
Proposed API
Usage Examples
With the propsed changes the API endpoints can be configured like followed:
Risks
I don't see any risks as the changes are implemented as an optional parameter.
Looking forward to your feedback. Thank you for the consideration.