Method FromEntra
- Namespace
- MailFathom.AI.Providers
- Assembly
- MailFathom.AI.dll
FromEntra(EntraCredentialDeclaration, IDisposable?, IReadOnlyList<ProviderEndpointHeader>?, IReadOnlyList<IDisposable>?)
Builds a credential that presents a Microsoft Entra access token.
public static ProviderEndpointCredential FromEntra(EntraCredentialDeclaration declaration, IDisposable? resolvedMaterial, IReadOnlyList<ProviderEndpointHeader>? extraHeaders = null, IReadOnlyList<IDisposable>? extraHeaderMaterial = null)
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.
extraHeadersIReadOnlyList<ProviderEndpointHeader>The resolved headers every request carries, or null where the endpoint declared none.
extraHeaderMaterialIReadOnlyList<IDisposable>The secret material those headers were read from, released when this credential is.
Returns
- ProviderEndpointCredential
The credential.
Exceptions
- ArgumentNullException
Thrown when
declarationis null.