Skip to content

OAuth2PasswordBearer endpoint wrongly defined? #25

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

Closed
0x108 opened this issue May 20, 2023 · 1 comment
Closed

OAuth2PasswordBearer endpoint wrongly defined? #25

0x108 opened this issue May 20, 2023 · 1 comment

Comments

@0x108
Copy link

0x108 commented May 20, 2023

Greetings,

while accessing the Swagger UI docs, I realized that the endpoint that's being used for user/password authentication is called /oauth, however in the code this can be found:
reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"{settings.API_V1_STR}/login/access-token")

When trying to login via the "Login" button in Swagger UI, a 404 Not Found is being returned - after changing the access-token occurrences in the code to oauth e.g.
reusable_oauth2 = OAuth2PasswordBearer(tokenUrl=f"{settings.API_V1_STR}/login/oauth") the login in the Swagger UI works.

Thanks for reading and maintaining,

Cheers!

@turukawa
Copy link
Member

Fixed by #29

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