Note: This video was originally uploaded on October 8, 2021.
In this video you will learn how to leverage the FastAPI dependency injection system to integrate your API with Auth0 and protect your endpoints. You'll see how that affects your API documentation and how you can use code we provided to verify your Auth0 access token.
Chapters:
00:00 Intro
1:22 Running the Example Project
3:33 Dependency Injection System in FastAPI
5:09 Configuring an API in Auth0
7:10 Protecting the Endpoint
16:16 Making Protected Requests
24:54 Outro
Links:
- Code sample: [ Ссылка ]
- Securing a FastAPI server with Auth0 by Mark Halpin: [ Ссылка ]
- A very complete blog post on "How to Handle JWTs in Python": [ Ссылка ]
- Auth0's page on JWTs: [ Ссылка ]
- Auth0's free ebook on JWTs: [ Ссылка ]
- Documentation on Python virtual environments: [ Ссылка ]
___________________________________________
Learn with Auth0 by Okta
Try for free - [ Ссылка ]
The Auth0 by Okta blog - [ Ссылка ]
Ask questions on the Community Forum - [ Ссылка ] ___________________________________________
Follow Us on Social
Twitter - [ Ссылка ]
LinkedIn - [ Ссылка ]
How to Protect an API in FastAPI with Auth0 by Okta
Теги
FastapiAPIprotecting endpointsjwtpyjwtJWT in PythonJSON Web Token in Pythonrs256hs256how to create JWT in Pythonhow to encode JWT in Pythonhow to verify JWT in Pythonhow to decode JWT in Pythonhow to sign jwt with rs256 in pythonhow to create jwt with rs256 in pythonjwt tutorialpython tutorialweb developmentidentitysecurityaccess tokensprotect endpointspythonoktaauth0 by oktaapihow to secure loginauthorizationauthentication