Method FromEntra
- Namespace
- MailFathom.AI.Providers
- Assembly
- MailFathom.AI.dll
FromEntra(EntraCredentialDeclaration, IDisposable?)
Builds a credential that presents a Microsoft Entra access token.
public static ProviderEndpointCredential FromEntra(EntraCredentialDeclaration declaration, IDisposable? resolvedMaterial)
Parameters
declarationEntraCredentialDeclarationWhat the credential is built from.
resolvedMaterialIDisposableThe secret material the declaration's own secret was read from, released when this credential is, or null when the shape holds none.
Returns
- ProviderEndpointCredential
The credential.
Exceptions
- ArgumentNullException
Thrown when
declarationis null.