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

No Swagger UI Operations Permitted #73

Open
AmmarAhmadKhan opened this issue Feb 4, 2022 · 1 comment
Open

No Swagger UI Operations Permitted #73

AmmarAhmadKhan opened this issue Feb 4, 2022 · 1 comment

Comments

@AmmarAhmadKhan
Copy link

I am not finding any way for accessing authorization header through fastapi_jwt_auth library, like we have the Swagger UI Authorization available for OAuth2PasswordBearer in which we can give tokenUrl and Swagger automatically adds Authorization header in successive requests

@krishnardt
Copy link

try removing domain, while setting up cookie.
It worked for me.

response.set_cookie( key=COOKIE_AUTHORIZATION_NAME, value=f"Bearer {access_token}", # domain=COOKIE_DOMAIN, httponly=True, max_age=60, # 3 hours expires=60, #samesite="none", secure=True # 3 hours # samesite="Lax", secure=False )

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

No branches or pull requests

2 participants