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

Re-fetch schema, when auth token is updated #458

Closed
jtamm-red opened this issue Jul 15, 2021 · 4 comments
Closed

Re-fetch schema, when auth token is updated #458

jtamm-red opened this issue Jul 15, 2021 · 4 comments
Labels
enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending help wanted Extra attention is needed

Comments

@jtamm-red
Copy link
Contributor

Schema visible depends user rights. Refresh to fetch schema, when authorization is changed.

Old package 'drf-yasg' has got this feature.
SWAGGER_SETTINGS = { 'REFETCH_SCHEMA_WITH_AUTH': True }
https://drf-yasg.readthedocs.io/en/stable/settings.html#refetch-schema-with-auth

We need this feature.

@tfranzel
Copy link
Owner

Hi! this has come up before and we have a issue #342 for it. since we use the vanilla swagger-ui and not a old patched version of swagger-ui (as drf-yasg does), we would probably require a slightly different solution.

i'm lacking the time to implement it at the moment. any help would be appreciated.

@jtamm-red
Copy link
Contributor Author

I did Swagger-ui issue as feature: swagger-api/swagger-ui#7425

We have to wait until this feature completing.

@tfranzel tfranzel added the help wanted Extra attention is needed label Jul 30, 2021
@tfranzel
Copy link
Owner

tfranzel commented Oct 6, 2021

please review and test #552

@tfranzel tfranzel added enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending labels Oct 6, 2021
tfranzel added a commit that referenced this issue Oct 31, 2021
Swagger UI authorized schema retrieval #342 #458
@tfranzel
Copy link
Owner

closing this issue for now. feel free to comment if anything is missing or not working and we will follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix confirmation pending issue has been fixed and confirmation from issue reporter is pending help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants