Skip to content

Conversation

jaclarke
Copy link
Member

@jaclarke jaclarke commented Sep 9, 2025

Match the behaviour of the email+password authenticate endpoint, and return a json response if the callback_url is not passed to the magic code authenticate endpoint.

scotttrinh and others added 3 commits September 8, 2025 12:30
Adds a configuration property to the provider config that will have the
sign-in flow act as a sign-up flow if set to true.
@jaclarke jaclarke requested a review from scotttrinh September 9, 2025 11:07
)
response_dict = {"code": auth_code}

if maybe_callback_url:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly a note for the future: I think the better approach would be to check the accept header and vary the required request body parameters based on whether the request accepts JSON or not. But what we have here matches our current defensive strategy and I wouldn't want to change this without making it a wider-reaching change across the whole auth server.

@scotttrinh scotttrinh added the to-backport-7.x PRs that *should* be backported to 7.x label Sep 9, 2025
@scotttrinh scotttrinh force-pushed the magic-link-auto-sign-up branch from 2c48e7d to bb135a0 Compare September 9, 2025 19:05
Base automatically changed from magic-link-auto-sign-up to master September 10, 2025 12:48
@jaclarke jaclarke merged commit d38555d into master Sep 10, 2025
23 checks passed
@jaclarke jaclarke deleted the magic-link-authenticate-json branch September 10, 2025 15:15
aljazerzen pushed a commit that referenced this pull request Sep 11, 2025
…is given (#9012)

Match the behaviour of the email+password authenticate endpoint, and
return a json response if the `callback_url` is not passed to the magic
code authenticate endpoint.

---------

Co-authored-by: Scott Trinh <[email protected]>
@aljazerzen aljazerzen added backported-7.x and removed to-backport-7.x PRs that *should* be backported to 7.x labels Sep 11, 2025
aljazerzen pushed a commit that referenced this pull request Sep 11, 2025
…is given (#9012)

Match the behaviour of the email+password authenticate endpoint, and
return a json response if the `callback_url` is not passed to the magic
code authenticate endpoint.

---------

Co-authored-by: Scott Trinh <[email protected]>
aljazerzen pushed a commit that referenced this pull request Sep 11, 2025
…is given (#9012)

Match the behaviour of the email+password authenticate endpoint, and
return a json response if the `callback_url` is not passed to the magic
code authenticate endpoint.

---------

Co-authored-by: Scott Trinh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants