-
Notifications
You must be signed in to change notification settings - Fork 10.4k
React to MapIdentityApi HTTP endpoints API review feedback #50067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
persistCookies -> useSessionCookies
@@ -90,12 +90,13 @@ public static IEndpointConventionBuilder MapIdentityApi<TUser>(this IEndpointRou | |||
}); | |||
|
|||
routeGroup.MapPost("/login", async Task<Results<Ok<AccessTokenResponse>, EmptyHttpResult, ProblemHttpResult>> | |||
([FromBody] LoginRequest login, [FromQuery] bool? cookieMode, [FromQuery] bool? persistCookies, [FromServices] IServiceProvider sp) => | |||
([FromBody] LoginRequest login, [FromQuery] bool? useCookies, [FromQuery] bool? useSessionCookies, [FromServices] IServiceProvider sp) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
([FromBody] LoginRequest login, [FromQuery] bool? useCookies, [FromQuery] bool? useSessionCookies, [FromServices] IServiceProvider sp) => | |
([FromBody] LoginRequest login, [FromQuery] bool? usePersistentCookies, [FromQuery] bool? useSessionCookies, [FromServices] IServiceProvider sp) => |
Was session deliberate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was session deliberate?
It was. I'm going to send an email to update the API proposal. The reason is the default behavior prior to this change with just cookieMode=true
was to presist cookies. persistCookies=false
opted out of that, so persistCookies
defaulted to true.
It was a horrible API, but making the simpler useCookies=true
persist cookies by default still makes sense in my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to bring back snake_case?
Allowing to set casing would be ideal
Fixes #50009