Constructor EntraCredentialDeclaration
- Namespace
- MailFathom.AI.Embeddings
- Assembly
- MailFathom.AI.dll
EntraCredentialDeclaration(EmbeddingEndpointCredentialKind, string, string?, string?, string?, string?, string?)
Everything one non-interactive Microsoft Entra credential is built from.
public EntraCredentialDeclaration(EmbeddingEndpointCredentialKind Kind, string TokenScope, string? TenantId, string? ClientId, string? ClientSecret, string? CertificatePath, string? CertificatePassword)
Parameters
KindEmbeddingEndpointCredentialKindWhich of the four non-interactive shapes the deployment holds.
TokenScopestringThe scope an access token is requested for.
TenantIdstringThe directory the application is registered in, or null where the shape reads it from the platform.
ClientIdstringThe application or user-assigned identity being authenticated, or null for a system-assigned managed identity.
ClientSecretstringThe resolved application secret, for ClientSecret alone.
CertificatePathstringThe path of the application certificate, for ClientCertificate alone.
CertificatePasswordstringThe resolved password protecting that certificate, or null where it needs none.
Remarks
A record of resolved values rather than of references, because resolving a reference is the host's business and this boundary holds no secret provider. What arrives here is what a credential is constructed with and nothing more.
The scope is declared rather than derived, because it is the audience an access token is minted for and the value has changed as the service was renamed. Deriving it from an endpoint address would silently mint tokens for the wrong audience the next time it moves, which arrives as an authentication failure with no configuration to point at.