graph.ManagedIdentity
A managed identity is the identity Azure gives the resource the code runs on, so the caller stores no secret.
Usage
graph.ManagedIdentity(client_id=None)Epistole requests the resource https://graph.microsoft.com, because msal’s managed identity client takes a resource and no scope. Inside smtp.OAuth, it requests https://outlook.office365.com instead. It does not work on Service Fabric, where msal requires its own requests.Session to pin the endpoint’s certificate. See ADR-0011.
Attributes
client_id: str | None-
The client ID of a user-assigned identity, or
Nonefor the system-assigned one.