Secure Serverless APIs with Python FastAPI, Azure AD and Azure Functions

preview_player
Показать описание
Step by step video on how to create serverless APIs using Azure Functions with Python and Fast API. Secure your API with JWT based authentication and authorization with Azure Active Directory to ensure that only authenticated requests can access your API endpoints.

Secure APIs with FastAPI and the Microsoft Identity Platform
Getting started with Python and Azure Functions
Visual Studio Code with Python

00:00:10 Dependencies
00:01:05 Create a local Python Azure Function project
00:04:26 Configure Azure Active Directory
07:12:00 Use ThunderClient to get an access token
00:08:23 Implement Fast API in Azure Functions
00:10:00 Add API Authorization
00:12:50 Testing authentication end-to-end

#python #serverless #fastapi #jwt #authentication #azuread
Рекомендации по теме
Комментарии
Автор

you and the 425 crew put out some really awesome videos. Much appreciated!

lacroixboi
Автор

Nice one!, I like the music and the vibe.

rabim
Автор

Nice video, I'm not too familiar with Azures services so it was rather insightful

I need to give a thumbs up for the *wink wink*

josesimoes
Автор

Great video Christos! I'm wondering if you have the plan to perform the same using Python v2 programming model. I tried to implement by myself but so far I've failed (not able to enable fastapi with microsoft AD in v2)

amarqueze
Автор

could you please reveal the VS code theme you are using in this video?

ashisharya
Автор

Great video. Thanks a lot. But I have some problems running the code:
1. azure func-tool uses system python and not the vend-python. For this, I needed to install fastapi and other stuff using system pip.
2. In weather.py-file requires_auth-function needs an "f" parameter. Otherwise, it raises type-error.

I am grateful for any support.

arashjavanmard
Автор

When I hit Generate Token, absolutely nothing is happening. Haha. Dead in the water. No browser window open. Going back to the beginning of the video to see if I messed something up, or maybe something has changed? In any case, this is an awesome video for understanding the pieces of this.

CJRomberger
Автор

Do you know why ciuld have this error: ModuleNotFoundError: No module named "routers". I don't kno wwhy this can happen because I created the directory as you did and the weatehr.py as you wrote it

victormanuelagudelomedina
Автор

I have followed the instructions exactly and keep getting "Invalid_header: Unable to parse authentication" for the final API call. Any help on this?

patrickmurray
Автор

Microsoft.AspNetCore.Routing: An error occurred while creating the route with name 'function' and template 'api//{*route}'. Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. (Parameter 'routeTemplate'). Microsoft.AspNetCore.Routing: The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value.


I am getting this error what should be done??

yashvardhan
Автор

Definitely not for beginners, you have missed multiple steps and basic introductions.

mff