-
First Check
Commit to Help
Example Codeno code hereDescriptionFastAPI tutorial series are very useful and helpful for me (as beginner and newcommer). Is there still encouraged(or okay) to practice and implement the securities parts as the FastAPI tutorials says? Anyway, really appreaciate for making Python backend more joyful and take-it-to-next-level ! Operating SystemWindows Operating System DetailsNo response FastAPI Versionlatest Python Version3.10 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
As of now, I would absolutely recommend to follow the tutorials. They give you several good ideas on how to implement FastAPI concepts (such as So, will it give you a production ready login system? No, it won't. But you can get the bits and pieces from it that can help you get there! Also, there is not exactly something wrong with the password flow if you just use it for your own website. However, if you want third parties to be able to log in users using your user-system, you should definitely avoid it. You would never want a user to enter credentials to your system in someone else's front end (as you don't know what that front end will do with those credentials). So, in short; definitely go through the tutorial and Google every concept you don't fully understand, and the tutorial will be a fantastic guide in your learning path :) Edit: I just wanted to make sure to emphasize that in order to build a login system with Fastapi, you do not need Oauth2 per se (or actually, at all). But, since the password flow in oauth2 basically gives a basic login system, you can still use that and not use Oauth for the rest of your application or login system. |
Beta Was this translation helpful? Give feedback.
-
|
Really appreicate for your invaluable comments! I totally understand what you point |
Beta Was this translation helpful? Give feedback.
As of now, I would absolutely recommend to follow the tutorials. They give you several good ideas on how to implement FastAPI concepts (such as
Depends, among others) and give a general idea about Oauth2 implementation considerations (such as, JWT, password salting, etc). I had a blast going through them and reading up on the details on different aspects. For example, I have a better grasp of Oauth2, the actors involved and their roles (and terminology used) because I followed and tried to fully comprehend the FastAPI Advanced Security tutorial.So, will it give you a production ready login system? No, it won't. But you can get the bits and pieces from it that can help you get there!
Also…