Replies: 3 comments 1 reply
-
i could use the field form_data.scopes. It returns a list with scopes. So i can use this for my frontend. But it would be nicer to have a field "rentalpoint" directly in the form. If someone has an idea how to do that please let me know and leave a comment :-) |
Beta Was this translation helpful? Give feedback.
-
I have the exact same requirements and I dont know how to do it. |
Beta Was this translation helpful? Give feedback.
-
It would be good to document to the solution to this as the intuitive action most developers would take (extending the class) does not work as expected. |
Beta Was this translation helpful? Give feedback.
-
First Check
Commit to Help
Example Code
Description
In the authentication form i would like to add an extra key/value like "rentalpoint": "berlin" which can be send from the client to the api while authenticate. I think i should edit/overwrite OAuth2PasswordRequestForm class model to do that. Im just starting with FastAPI and it seems im not getting the point. Can anyone give me at least a hint how to do that?
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.68.1
Python Version
Python 3.9.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions