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!
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 Foundis being returned - after changing theaccess-tokenoccurrences in the code tooauthe.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!