Update to quickstart SSO w/ python & MSAL for anyone using FastAPI instead of Flask
まだ誰も着手していません。
評価
- 難易度
- 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
- 平均マージ
- 13時間 48分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AzureAD/microsoft-authentication-library-for-python のほかの issue
-
needs attention untriaged
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
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 が 39 日前に担当しました。 オープン
難易度 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 が 46 日前に担当しました。 オープンbug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
AzureAD/microsoft-authentication-library-for-python#957 · コメント 3 件 ·
-
public-client untriaged
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
AzureAD/microsoft-authentication-library-for-python の issue をすべて見る
似ている issue
-
wr.dynamodb.read_items returns [{}] for a single partition value that does not exist対応中かも @auraseb が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
aws/aws-sdk-pandas#3520 ·
メンテナーはふだん 2 日以内に返信
-
requires triage typing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sqlalchemy/sqlalchemy#13704 ·
メンテナーはふだん 1 日以内に返信
-
Edit tool converts CRLF files to LF対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
huggingface/tau#774 ·
メンテナーはふだん 1 日以内に返信
-
show ignores the row limit when a column or table name contains "limit"対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
linebender/resvg#1179 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信