Giter Club home page Giter Club logo

Comments (12)

yugangw-msft avatar yugangw-msft commented on June 19, 2024

@Walk4Muscle, your account is federated. It is more recommended to use interactively login, check out the sample. Let me know whether this works for you.

from azure-activedirectory-library-for-python.

Walk4Muscle avatar Walk4Muscle commented on June 19, 2024

So which type of account I can use in the acquire_token_with_username_password function?

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

For non-federated accounts acquire_token_with_username_password should just work. For federated accounts, those identities provided through on-prem servers, it is complex because it involves the ADFS server configuration. If you have test accounts we can repro this issue, that will speed up the diagnosis. I can be reached by email: yugangw at microsoft dot com
/CC: @addev-ashish, can you ask your team for whether this is a known issue?

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

Also, if you have accounts with 2 factor authentication enforced, acquire_token_with_username_password won't work as well. Interactive login work for any account types.

from azure-activedirectory-library-for-python.

MIT02 avatar MIT02 commented on June 19, 2024

Dear yugangw, I have the same problem. Login per credential (username/passord) - without user interaction - is required if a service do the data exchange. I can provide you a test account. Thanks. BR MIT

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

@MIT02 I should submit a fix on early next week.

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

@MIT02 , @Walk4Muscle, it will take some more days to get the package published out, but you can try out by installing the package from git
pip install https://github.com/yugangw-msft/azure-activedirectory-library-for-python/tarball/federated
And let me know if you see any issues.
The change includes the fix for this issue, and also improves the support on federated accounts particular on wstrust 2005.

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

fixed in 0.4

from azure-activedirectory-library-for-python.

clp-trap avatar clp-trap commented on June 19, 2024

Hello,

i am having the same issue as above to acquire token using acquire_token_with_username_password(python 2.7), i am using the same code.

from azure-activedirectory-library-for-python.

MIT02 avatar MIT02 commented on June 19, 2024

from azure-activedirectory-library-for-python.

clp-trap avatar clp-trap commented on June 19, 2024

I am using the latest version, not working.

from azure-activedirectory-library-for-python.

yugangw-msft avatar yugangw-msft commented on June 19, 2024

@vogranovic, are you getting the same stack trace?

from azure-activedirectory-library-for-python.

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.