Update to quickstart SSO w/ python & MSAL for anyone using FastAPI instead of Flask
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 文件
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
研究方向
The issue links to the FastAPI authentication demo repository and the Microsoft Python web app quickstart. Read both to compare the FastAPI example with the Flask quickstart, including its port and callback URL setup. Done means the quickstart offers a clear FastAPI reference for signing in with Microsoft and calling the Graph API.
由索引模型根據 Issue 內容生成。
描述
New way to use another framework to Add sign-in with Microsoft to a Python web app.
Note: This is a very simple demo - to keep it easy to understand for anyone getting started.
Reason i posted this is that a good friend was having some issues following the getting started with Azure SSO & Flask since the example is in flask only. Thus, I borrowed the flask demo referenced from the quick start guide here. The repo handles redirect to SSO, azure auth, and redirect back to the callback url which eventually gets the JWT(s), and allows you to make calls to the graph api. There are some subtle nuances and conversion is not as easy as one would think, so i wanted to post this in case anyone is looking or a super simple reference repository for doing the same thing from the original guide, but with a really awesome concurrent python library. You get checkout FastAPI here.
The repository demo can be found at https://github.com/AndrewJHart/Azure-FastAPI-Auth-Example
The link to the original guide is below. You will need to follow the guide to get started and create your web app. The only
difference in the setup steps is that the repo i'm sharing runs on port 9000 and the cb url is/oauthinstead of port 5000
and cb beinggetAToken(all of which is configurable). The project layouts are almost identical as well.
This will work in a multi-tenant situation as well. I hope this is helpful. Thanks!
Perhaps it would behoove Azure to use this or a similar example to demonstrate how to do something similar without requiring Flask or Django.
Thanks very much,
- 主要語言
- Python
- 星號
- 971
- 分支
- 223
- 平均合併
- 1 天 32 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
AzureAD/microsoft-authentication-library-for-python 的其他 Issue
-
needs attention untriaged
難度 4/5 3-5 天 新手友好度 48/100
AzureAD/microsoft-authentication-library-for-python#973 · 3 則留言 ·
-
AzureSDK bug P1
難度 4/5 3-5 天 新手友好度 48/100
-
http_client docstring does not say that timeout, verify and proxies only configure the default session可能已有人在做 @HardMax71 於 48 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 25/100
-
[Bug] The built-in retry never retries the token POST: HTTPAdapter(max_retries=1) keeps urllib3's default allowed_methods可能已有人在做 @HardMax71 於 54 天前認領。 未關閉bug untriaged
難度 2/5 1-3 小時 新手友好度 35/100
AzureAD/microsoft-authentication-library-for-python#957 · 3 則留言 ·
-
public-client untriaged
難度 5/5 一週以上 新手友好度 25/100
查看 AzureAD/microsoft-authentication-library-for-python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
MIT-LCP/wfdb-python#590 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
pollen-robotics/reachy_mini#1517 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 69/100
NRLMMD-GEOIPS/pluginify#41 ·
-
難度 2/5 1-3 小時 新手友好度 67/100
scverse/spatialdata#1293 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
UKGovernmentBEIS/inspect_evals#2788 ·
維護者通常 1 天內回覆