Skip to content

Switch staging back to builtin oauth Application #2331

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

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

mvandenburgh
Copy link
Member

Fixes #2319

This commit switches the staging environment back to using the builtin Application model for OAuth2 authentication, while enabling the ALLOW_URI_WILDCARDS setting to allow for wildcard URIs to support Netlify deploy previews.

To be extra cautious, I did not remove the custom StagingApplication model yet. I think we should merge this, verify it works properly, and only then remove the custom model.

This commit switches the staging environment back to using the builtin
`Application` model for OAuth2 authentication, while enabling the
`ALLOW_URI_WILDCARDS` setting to allow for wildcard URIs to support
Netlify deploy previews.
@mvandenburgh mvandenburgh added the internal Changes only affect the internal API label Apr 18, 2025
@mvandenburgh mvandenburgh requested a review from jjnesbitt April 18, 2025 17:24
@jjnesbitt
Copy link
Member

This will temporarily break logins on staging until we go in and set the redirect URLs and other settings again, correct?

@mvandenburgh
Copy link
Member Author

This will temporarily break logins on staging until we go in and set the redirect URLs and other settings again, correct?

Right. We'll have to create an Application in the django admin with the same values as the existing StagingApplication

@mvandenburgh mvandenburgh merged commit da1a2af into master Apr 18, 2025
10 checks passed
@mvandenburgh mvandenburgh deleted the switch-to-builtin-oauth-app branch April 18, 2025 17:50
@dandibot
Copy link
Member

🚀 PR was released in v0.8.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use oauth toolkit's ALLOW_URI_WILDCARDS instead of a custom Application model
3 participants