Comments (12)
@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.
So which type of account I can use in the acquire_token_with_username_password
function?
from azure-activedirectory-library-for-python.
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.
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.
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.
@MIT02 I should submit a fix on early next week.
from azure-activedirectory-library-for-python.
@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.
fixed in 0.4
from azure-activedirectory-library-for-python.
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.
from azure-activedirectory-library-for-python.
I am using the latest version, not working.
from azure-activedirectory-library-for-python.
@vogranovic, are you getting the same stack trace?
from azure-activedirectory-library-for-python.
Related Issues (20)
- AuthenticationContext is not pickleable HOT 1
- oauth token does not have necessary scopes to complete the request HOT 3
- Additional authority servers HOT 2
- question with key auth HOT 6
- Cache driver should update refresh token entries based on user id and authority HOT 3
- linux not working with adal get token HOT 2
- ADAL-basics Wiki page - typo in code HOT 2
- Replace "login.windows.net" with "login.microsoftonline.com" in the authority host list HOT 6
- Subject Name/Issuer Authentication? HOT 2
- How to get latest AAD access token using user id HOT 2
- Pass Resource parameter as a String in AuthenticationContext.acquire_token_with_authorization_code HOT 3
- Somehow update ADAL's docs in docs.microsoft.com to mention MSAL HOT 2
- Can't create token on local with credentials that are already working in production
- Problem generating bearer token using APIs HOT 1
- ProxyError in python with API HOT 12
- `UnicodeEncodeError` when calling `acquire_token_with_username_password` with wstrust HOT 3
- Removing adal increases webapp latency by 3+ seconds HOT 3
- The result token's `resource` doesn't match `resource` sent to `acquire_token_with_device_code` HOT 2
- Facing erros related to "cryptography" library when execute in CentOS 7 Python 3.6.12 HOT 2
- Continuous OSS-Fuzz integration HOT 1
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 azure-activedirectory-library-for-python.