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

Change tokenUrl #11

Closed
Choiuijin1125 opened this issue Feb 8, 2023 · 2 comments
Closed

Change tokenUrl #11

Choiuijin1125 opened this issue Feb 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Choiuijin1125
Copy link

Hi !

Thanks you for amazing contribution :)

I just found that we need to change app/api/deps/

reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"(tokenUrl=f"{settings.API_V1_STR}/login/access-token")
->
reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"{settings.API_V1_STR}/login/oauth")

Whatelse it will throw error in swagger authentication

@turukawa
Copy link
Member

turukawa commented Feb 8, 2023

Hi @Choiuijin1125

Thanks, good catch. I'll fix that shortly. Was thinking I might do a quick refactor for SqlAlchemy 2.0 as well ...

@turukawa turukawa self-assigned this Feb 8, 2023
@turukawa turukawa added the bug Something isn't working label Feb 8, 2023
@turukawa
Copy link
Member

Release 0.7.1 should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants