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

Support a configurable oauth redirect URL #442

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

thedumbterminal
Copy link

@thedumbterminal thedumbterminal commented Jun 5, 2022

Currently an oauth redirect URL is hardcoded as oauth2-redirect.html, this works fine for example applications but for production apps you probably want to specify your own URL so you can add logic such as creating a user account etc.

This change adds a new config variable called SWAGGER_UI_OAUTH_REDIRECT_URL which will tell swagger which URL to use when submitting to the oauth endpoint. This will need to match what has been previously configured with the oauth provider.

I've also included a simple github oauth example for reference.

As this is my first PR into this project please let me know if there are any changes or additions I need to make this to comply with the prioject standards.

Resolves: #438

@thedumbterminal
Copy link
Author

Addresses: #438

@ziirish ziirish force-pushed the master branch 2 times, most recently from 0db7d06 to 4eaf373 Compare November 1, 2022 17:47
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.

Support configurable OAUTH redirect URLs
1 participant