MSIAuthentication Class
Credentials object for MSI authentication,.
Optional kwargs may include:
timeout: If provided, must be in seconds and indicates the maximum time we'll try to get a token before raising MSIAuthenticationTimeout
client_id: Identifies, by Azure AD client id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with object_id and msi_res_id.
object_id: Identifies, by Azure AD object id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and msi_res_id.
msi_res_id: Identifies, by ARM resource id, a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with client_id and object_id.
cloud_environment (msrestazure.azure_cloud.Cloud): A targeted cloud environment
resource (str): Alternative authentication resource, default is 'https://management.core.windows.net/'.
New in version 0.4.14.
- Inheritance
-
MSIAuthentication
Constructor
MSIAuthentication(port=50342, **kwargs)
Parameters
- port
Methods
set_token | |
signed_session |
Create requests session with any required auth headers applied. If a session object is provided, configure it directly. Otherwise, create a new session and return it. |
set_token
set_token()
signed_session
Create requests session with any required auth headers applied.
If a session object is provided, configure it directly. Otherwise, create a new session and return it.
signed_session(session=None)
Parameters
- session
- <xref:requests.Session>
The session to configure for authentication
Return type
Feedback
Submit and view feedback for