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

Fix the default oauth paths to match the route #4725

Merged
merged 1 commit into from Nov 23, 2022

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Nov 18, 2022

What does this PR do?

Previously, Utopia handled /auth/oauth2/success and /v1/auth/oauth2/success exactly the same (with the same handler). So on mobile, when users were redirected $oauthDefaultSuccess (/v1/auth/oauth2/success), it was still handled. After we deleted that route and moved the code to the new console, the default /v1/auth/oauth2/success resulted in a 404. This changes the default path to remove the /v1/ prefix so that the console can handle the redirect.

Test Plan

Manual

Related PRs and Issues

Have you added your change to the Changelog?

(The CHANGES.md file tracks all the changes that make it to the main branch. Add your change to this file in the following format)

  • One line description of your PR [#pr_number](Link to your PR)

Have you read the Contributing Guidelines on issues?

Yes

@stnguyen90 stnguyen90 force-pushed the fix-4714-fix-default-oauth-path branch from ccf8401 to 3a6a9e4 Compare November 18, 2022 20:30
@stnguyen90 stnguyen90 force-pushed the fix-4714-fix-default-oauth-path branch from c54adfc to c0cd82f Compare November 23, 2022 16:59
@stnguyen90 stnguyen90 force-pushed the fix-4714-fix-default-oauth-path branch from c0cd82f to 0155618 Compare November 23, 2022 17:58
@TorstenDittmann TorstenDittmann merged commit 6d3adeb into master Nov 23, 2022
@TorstenDittmann TorstenDittmann deleted the fix-4714-fix-default-oauth-path branch November 23, 2022 18:00
@stnguyen90 stnguyen90 linked an issue Nov 26, 2022 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: can’t create oauth sessions on native apps
3 participants