We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
drf-yasg does not work with Django 4.2 when redirect url is called during authorization.
drf-yasg
Reproduction steps:
Authorize
Side effects:
No
# requirements.txt Django==4.2.2 djangorestframework==3.14.0 drf-yasg==1.21.6
# settings.py SWAGGER_SETTINGS = { "USE_SESSION_AUTH": False, "OAUTH2_REDIRECT_URL": "/static/drf-yasg/swagger-ui-dist/oauth2-redirect.html", "SECURITY_DEFINITIONS": { "oauth2": { "type": "oauth2", "flow": "implicit", "authorizationUrl": "https://some-url/auth"), "scopes": {"some-scope": "", }, }, }, }
However, this same setup works fine with the following requirements:
Django==3.2.19 djangorestframework==3.14.0 drf-yasg==1.21.6
Note: the behaviour is only affecting when using Django 4.2, but not Django 3.x.
no stack trace or an error message is raised
The text was updated successfully, but these errors were encountered:
Has this issue been resolved? Experiencing same issue
Sorry, something went wrong.
No branches or pull requests
Bug Report
Description
drf-yasg
does not work with Django 4.2 when redirect url is called during authorization.Reproduction steps:
Authorize
Side effects:
Is this a regression?
No
Minimal Reproduction
However, this same setup works fine with the following requirements:
Note: the behaviour is only affecting when using Django 4.2, but not Django 3.x.
Stack trace / Error message
no stack trace or an error message is raised
The text was updated successfully, but these errors were encountered: