FastAPI - JWT Authentication - Secure your Endpoints (Part1 for creating a chatbot with custom ux)

  Рет қаралды 5,841

Coding Crash Courses

Coding Crash Courses

Күн бұрын

Пікірлер: 24
@nikhilsharma26500
@nikhilsharma26500 Жыл бұрын
You're doing a phenomenal job! View count might be low now but the value it adds is incredible. Please keep making and sharing content like these I'm very thankful!
@codingcrashcourses8533
@codingcrashcourses8533 Жыл бұрын
Thank you so much :-)
@awakenwithoutcoffee
@awakenwithoutcoffee 3 ай бұрын
What about using Session-based auth. in favor of JWT ? I'm tasked to solve authorization/authentication and it's a real challenge so far. We have access to "Auth0" but session based examples for python (fast-api) are nowhere to be found.
@codingcrashcourses8533
@codingcrashcourses8533 3 ай бұрын
I don´t have much experience with session based auth, since you need server and client to archieve that. On modern apps, you typically scale horizontally, which makes session based auth very difficult.
@1977spaul
@1977spaul 7 ай бұрын
route conversation is giving error "401 Unauthorised". How to debug the same.
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
You probably just did not use the token for the tokenpoint
@avikhandakar
@avikhandakar Жыл бұрын
Hi, thanks for the tutorial. I have a problem. On latest version of FastApi use pydantic version 2 but langchain required pydantic 1. So i get an error. How can i solve it?
@codingcrashcourses8533
@codingcrashcourses8533 Жыл бұрын
Pydantic was just recently upgraded to 2.x . I currently suggest to downgrade it to version x.x until langchain updates it. Did not have time to take a view at the breaking changes of pydantic 2.x
@wahi80
@wahi80 8 ай бұрын
Awesome video, do you have something similar which would use social auth like Google to authenticate and secure the FastAPI endpoints? It will save the pain of maintaining the DB for users
@codingcrashcourses8533
@codingcrashcourses8533 8 ай бұрын
No, sorry :(
@awakenwithoutcoffee
@awakenwithoutcoffee 3 ай бұрын
Auth0 can be an option!
@sathishKumar-wb6sl
@sathishKumar-wb6sl 8 ай бұрын
Thanks much for the great video and explanation. your video has greatly helped me to understand the concept of JWT. However, could you tell me the purpose and use of token post end point. Because without invoking the token endpoint, I'm able to authorize and call the conversation end point successfully.
@codingcrashcourses8533
@codingcrashcourses8533 8 ай бұрын
Yes sure. The token endpoint is there to giving you the credentials, the token. This is what u send in every subsequent request in the request header :)
@sathishKumar-wb6sl
@sathishKumar-wb6sl 7 ай бұрын
@@codingcrashcourses8533 thanks much for the Swift response. Just curious to know, what happens when we remove the token end point. Because when we authorise, it's just asking for username and password. Pardon me, if that is already explained. Thanks again.
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
@@sathishKumar-wb6sl then you wont get a token and won´t be able to access the endpoints which require authentication
@sathishKumar-wb6sl
@sathishKumar-wb6sl 7 ай бұрын
@@codingcrashcourses8533 perfect, understood. Appreciate all your help. Definitely you're going to big and make others as well. My best wishes to you ❤️
@sanmesh327
@sanmesh327 Жыл бұрын
hey, thanks a lot! this video really help me to get understand. just let me know which packages/modules need to be install first.
@sanmesh327
@sanmesh327 Жыл бұрын
just let me know which libraries need to be installed, because this is my one of internship task, I need to complete today only 😄
@codingcrashcourses8533
@codingcrashcourses8533 Жыл бұрын
@@sanmesh327 Run pip install pipreqs and run "pipreqs .". This will create you a requirements.txt file from an existing project. For this project FastAPI should be enough in general.
@sanmesh327
@sanmesh327 Жыл бұрын
@@codingcrashcourses8533 okay, yes, I've installed general libraries. but getting "failed to build pyCrypto ERROR: Could not build wheels for pyCrypto, which is required to install pyproject.toml-based projects" this error
@sanmesh327
@sanmesh327 Жыл бұрын
@@codingcrashcourses8533 In my machine, pyCrypto is not working, so their is any alternative to pycrypto that I can use in project?
@mauriciorondonfajardo4207
@mauriciorondonfajardo4207 10 ай бұрын
Hi Thank for content. however it doesn't work.
@codingcrashcourses8533
@codingcrashcourses8533 10 ай бұрын
Be more specific please
@mauriciorondonfajardo4207
@mauriciorondonfajardo4207 10 ай бұрын
@@codingcrashcourses8533 excuseme, I was install wrong of depencies.
LangChain & FastAPI - Customized, secured ChatBot with JWT Authentication
9:10
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Session Vs JWT: The Differences You May Not Know!
7:00
ByteByteGo
Рет қаралды 331 М.
FastAPI JWT Tutorial | How to add User Authentication
20:27
Eric Roby
Рет қаралды 71 М.
FastAPI Crashcourse - build your own REST-API
33:48
Coding Crash Courses
Рет қаралды 4,1 М.
FastAPI Authentication with  JWT (JSON Web Tokens)
56:18
Bek Brace
Рет қаралды 101 М.
Fast API crash course | easy way
26:11
Hitesh Choudhary
Рет қаралды 64 М.