orbitra.commons.auth.azure
Functions
complete_device_code_login
start_device_code_login.
Args:
scope: The scope to authenticate for.environment: The environment to authenticate against.
- The authentication record persisted on success.
get_azure_access_token
scope: The scope to get an access token for.environment: The environment to get an access token for.
- An access token for the given scope and environment.
get_azure_credential
scope: The scope to get a credential for.environment: The environment to get a credential for.use_device_code: If True, use device code flow. If False, use interactive browser. If None, use env var.
- A credential for the given scope and environment.
start_device_code_login
scope: The scope to authenticate for.environment: The environment to authenticate against.
- The MSAL device flow, including
user_code,verification_uriandmessage.