Comments (6)
Also I found a similar question here: https://stackoverflow.com/questions/74029012/fastapi-fetch-user-and-token-from-azure
from fastapi-azure-auth.
It's documented and answered here: https://intility.github.io/fastapi-azure-auth/usage-and-faq/calling_your_apis_from_python
from fastapi-azure-auth.
It's documented and answered here: https://intility.github.io/fastapi-azure-auth/usage-and-faq/calling_your_apis_from_python
Yes, I tried this, I'm getting a token, but as far as I understand this token is for the client app, isn't? I mean, any member of my organization are signing in. I'm not sure, can be a missunderstanding from my side how the workflow is working, but I'm expecting to call the script and be redirected to the Microsoft login page. It is only returning the token, how I know that this token belongs to me?
python client.py
<Response [200 OK]>
eyJ0eXAiOiJKV1QiLCJhbGci...
from fastapi-azure-auth.
I honestly don't understand the question, sorry. You can obtain tokens in multiple ways, either by getting one through a user or an application. The docs I linked to auths as an application.
If you want to have a login page you need to look into this: https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-additional-methods
from fastapi-azure-auth.
Hi Jonas! I think this information is useful. Sorry to don't explain better, I'm pretty new implementing this security stuff.
I will check this docs.
Thanks for answering!
from fastapi-azure-auth.
I've written a blog post about it here, might be a good place to start.
Feel free to ask questions and I'll do my best to answer, I just didn't quite get what the question was.
from fastapi-azure-auth.
Related Issues (20)
- get JWT token after validation HOT 11
- [Feature request] Accept both token versions HOT 6
- [Question] Implementation on Azure API Management HOT 3
- [Feature request] Docs On How to set up AAD B2C HOT 10
- Wrong access token required claims HOT 2
- OpenAPI schema with FastAPI >= 0.99.0 HOT 2
- [Feature request] HOT 1
- Validating extension attributes for managing user roles in B2C HOT 3
- Multiple Scopes HOT 3
- [Feature request] support Pydantic v2 syntax / @validator -> @field_validator HOT 5
- [BUG/Question] Fixing TypeError during WebSocket Authentication Migration from FastAPI 0.96 to 0.97 HOT 8
- Calling your APIs from Python not working HOT 22
- [Question] Middleware logging does not get request.state.user HOT 2
- Make leeway a setting available for configuration
- [BUG/Question] auth_time is parsed as a string, should be int HOT 2
- [BUG/Question] Got 'Token contains invalid claims' error for the `single tenant setup example ` HOT 6
- [Question] Validate bearer token from Angular SPA (Azure AD) in FastAPI HOT 4
- [BUG/Question] Error calling openid_config.load_config with Httpx 0.25.1 HOT 4
- [Bug/Question] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-azure-auth.