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.
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 theaccess-token
occurrences in the code tooauth
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!