Enum ApiKeyRejection
- Namespace
- MailFathom.Infrastructure.Security.ApiKeys
- Assembly
- MailFathom.Infrastructure.dll
Why a presented MCP credential was refused.
public enum ApiKeyRejection
Fields
CredentialExpired = 3A well-formed credential was presented that matches a configured key whose lifetime has ended.
CredentialMalformed = 1The header was present but is not a
Bearercredential this endpoint could read.CredentialMissing = 0The request carried no
Authorizationheader at all.CredentialUnrecognized = 2A well-formed credential was presented that matches no configured key.
Remarks
Every value produces the same response, so this vocabulary exists for the server log and never for the caller. A client that learned the difference between an unrecognized key and an expired one would learn that a key it holds once existed, which is one bit more than a refusal is allowed to say.