Update to quickstart SSO w/ python & MSAL for anyone using FastAPI instead of Flask
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Domínio
- authentication, documentation
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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,
- Linguagem predominante
- Python
- Estrelas
- 971
- Forks
- 223
- Merge médio
- 13h 48min
- PRs com merge (30d)
- 2
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de AzureAD/microsoft-authentication-library-for-python
-
needs attention untriaged
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
-
AzureSDK bug P1
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
-
http_client docstring does not say that timeout, verify and proxies only configure the default sessionTalvez já em andamento @HardMax71 assumiu há 40 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 25/100
-
[Bug] The built-in retry never retries the token POST: HTTPAdapter(max_retries=1) keeps urllib3's default allowed_methodsTalvez já em andamento @HardMax71 assumiu há 46 dias. Abertabug untriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
AzureAD/microsoft-authentication-library-for-python#957 · 3 comentários ·
-
public-client untriaged
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Todas as issues de AzureAD/microsoft-authentication-library-for-python
Issues semelhantes
-
idxmax/idxmin raise ValueError when a single partition is all-NATalvez já em andamento @Jason10191019999 assumiu hoje. Abertaneeds triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 3 dias
-
Old versions of datamodelsAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
-
[BUG]: Windows GUI package of v1.17.0-rc3 has no GTK DLLsTalvez já em andamento @andrut-ds assumiu hoje. Abertabug CI/CD Pactus-GUI Windows
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
pactus-project/pactus#2428 ·
Mantenedores costumam responder em até 1 dia
-
DiskDataset.reshard() can hang with a zero or negative shard sizeTalvez já em andamento @Programmer-Develops assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 19 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
GNS3/gns3-server#3017 · 1 comentário ·
Mantenedores costumam responder em até 1 dia