Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Update to quickstart SSO w/ python & MSAL for anyone using FastAPI instead of Flask

オープン
#448 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
azure, fastapi, python

調査の方向性

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 の本文から書いたものです。

説明

documentation

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 /oauth instead of port 5000
and cb being getAToken (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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AzureAD/microsoft-authentication-library-for-python のほかの issue

AzureAD/microsoft-authentication-library-for-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。