Skip to content
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

Return JSON for magic link register #6974

Merged
merged 2 commits into from Mar 5, 2024
Merged

Conversation

scotttrinh
Copy link
Contributor

If the request specifies Accept: application/json, then even failures should return JSON for the register request. redirect_on_failure is still used to redirect in the case there is an issue when the user follows the link since that's a GET request by a user agent like a browser.

@scotttrinh scotttrinh added auth Issues with the auth extension to-backport-5.x labels Mar 4, 2024
@scotttrinh scotttrinh requested a review from jaclarke March 4, 2024 14:21
@scotttrinh scotttrinh force-pushed the magic-link-register-failure branch 2 times, most recently from 74cf12e to 5c2179f Compare March 4, 2024 18:28
@scotttrinh scotttrinh changed the base branch from master to fix-webauthn-scripts March 4, 2024 18:28
Base automatically changed from fix-webauthn-scripts to master March 5, 2024 14:37
If the request specifies `Accept: application/json`, then even failures
should return JSON for the register request. `redirect_on_failure` is
still used to redirect in the case there is an issue when the user
follows the link since that's a GET request by a user agent like a
browser.
@scotttrinh scotttrinh merged commit 9e17dac into master Mar 5, 2024
24 checks passed
@scotttrinh scotttrinh deleted the magic-link-register-failure branch March 5, 2024 15:13
msullivan pushed a commit that referenced this pull request Mar 7, 2024
msullivan pushed a commit that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues with the auth extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants