Replies: 1 comment
-
|
Hi! Try to specify without a slash at the beginning: oauth2_scheme = OAuth2PasswordBearer(tokenUrl='api/v1/auth/login') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I am using a custom auth, which has a path of

api/v1/auth/loginas a tokenUrl. Is there a way for OPENAPI config to use this new url?#4328 This is a related discussion, but it didn't seem to solve it. Trying
Does not change the token url.
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.103.1
Pydantic Version
2.3.0
Python Version
3.10.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions