Changes to IdentityApiEndpointRouteBuilderExtensions made get api/User/manage/info pointless #52311
Closed
1 task done
Labels
area-identity
Includes: Identity and providers
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
Milestone
Is there an existing issue for this?
Describe the bug
#51177
This has made /api/User/manage/info return the same info you send in the body of the request
return TypedResults.Ok(await CreateInfoResponseAsync(user, userManager));
return new() { Email = await userManager.GetEmailAsync(user) ?? throw new NotSupportedException("Users must have an email."), IsEmailConfirmed = await userManager.IsEmailConfirmedAsync(user), };
Already a breaking change going from 'account' to 'manage' so might as well have got rid of the call
Expected Behavior
Ideally it would still return some info on the user i.e. UserId etc
Steps To Reproduce
call /api/User/manage/info with email and isEmailConfirmed values. Get the same back.
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
No response
The text was updated successfully, but these errors were encountered: