Replies: 2 comments
-
|
I may have found a partial answer to my inquiry. I found out how to verify a user provided password with one generated by django with this confirmed SO answer. from passlib.apps import django_context
hash = 'pbkdf2_sha256$20000$3RFHVUvhZbu5$llCkkBhVqeh69KSETtH8gK5iTQVy2guwSSyTeGyguxE='
user_input = 'password'
django_context.verify(user_input, hash)With that piece out of the way, are my steps a valid way to proceed or is that not a secure means to verify a user? Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Closing as I believe my question is no longer relevant to FastAPI specifically but to REST API security in general. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
This is a request for further guidance or resources around a 'Tip' provided in the Security OAuth2 tutorial.
Following the OAuth2 security tutorial, I see the tip where you can read/verify django generated passwords and I'm failing to find more resources around being able to do this.
Basically my goal is to have my FastAPI application share user authentication with a separate django site which uses the default built-in authentication. Users are expected to use the FastAPI app programmatically and not have any UI for setting up authentication. So my thought is that they would pass in their credentials in a form or some secure manner along with the other parameters of the request.
My assumed steps:
Any help or guidance on whether these steps are in the right direction or added suggestions is greatly appreciated!
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.87.0
Python Version
python 3.10
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions