MSAL UsernamePasswordCredential
UsernamePasswordCredential in https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity?view=azure-python
Authenticates a user with a username and password.
Microsoft doesn't recommend this kind of authentication because it's less secure than other authentication flows.
Authentication with this credential is not interactive, so it is incompatible with multi-factor authentication or consent prompting. The application must already have consent from the user or a directory admin.
This credential can only authenticate work and school accounts; Microsoft accounts are not supported. See Azure Active Directory documentation for more information about account types.
More examples regarding using automated SAML assertion to retrieve OAuth tokens in Javaand Python
Last updated