-
Notifications
You must be signed in to change notification settings - Fork 375
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: use configured redirect URL for external providers #1114
Conversation
7da4d05
to
de5e6df
Compare
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.
Hmm i added this initially because i thought that the config doesn't matter. It can be any custom domain the developer decides to use and it's up to them to set it within the oauth app.
Yes but this setting configures what redirect URL is being sent to the OAuth provider, which is controlled by the |
ah good point, yeah that will result in breaking behaviour if the user attempts to sign in with oauth from a custom domain |
Ah okay, so with custom domains the user would still configure
Oh what would be the difference here? By relative path would it mean that the user specifying the suffix (e.g. |
@J0 yeah the user would have to be able to update the |
i initially made the assumption that a developer would add all their associated custom domains to the oauth app but that might not be the case and will result in an error - maybe we should expose the |
Oh okay I'm still slightly lost - could I trouble you for a quick check - would the breaking behaviour result from the following:
|
@J0 yup that's right |
🎉 This PR is included in version 2.69.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
With supabase#999 custom domains were introduced, however for OAuth, the redirect URLs should in fact be the ones specified in the config and not ones interpreted from the `X-Forwarded-Host` header.
With supabase#999 custom domains were introduced, however for OAuth, the redirect URLs should in fact be the ones specified in the config and not ones interpreted from the `X-Forwarded-Host` header.
With supabase#999 custom domains were introduced, however for OAuth, the redirect URLs should in fact be the ones specified in the config and not ones interpreted from the `X-Forwarded-Host` header.
With #999 custom domains were introduced, however for OAuth, the redirect URLs should in fact be the ones specified in the config and not ones interpreted from the
X-Forwarded-Host
header.