Giter Site home page Giter Site logo

[Question] about fastapi-azure-auth HOT 6 CLOSED

michel7x avatar michel7x commented on June 6, 2024
[Question]

from fastapi-azure-auth.

Comments (6)

michel7x avatar michel7x commented on June 6, 2024

Also I found a similar question here: https://stackoverflow.com/questions/74029012/fastapi-fetch-user-and-token-from-azure

from fastapi-azure-auth.

JonasKs avatar JonasKs commented on June 6, 2024

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.

michel7x avatar michel7x commented on June 6, 2024

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.

JonasKs avatar JonasKs commented on June 6, 2024

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.

michel7x avatar michel7x commented on June 6, 2024

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.

JonasKs avatar JonasKs commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.