Overview
Auth internal errors are thrown by the authentication infrastructure — encryption contexts, credential vaults, token stores, session management, and provider registration. All are internal errors that should never be exposed to clients. For public-facing auth errors, see Auth Errors.Encryption Errors
EncryptionContextNotSetError
Thrown when the encryption context is not set before an operation that requires it.| Property | Type | Value |
|---|---|---|
code | string | ENCRYPTION_CONTEXT_NOT_SET |
statusCode | number | 500 |
isPublic | boolean | false |
EncryptionKeyNotConfiguredError
Thrown when the encryption key is not configured.| Property | Type | Value |
|---|---|---|
code | string | ENCRYPTION_KEY_NOT_CONFIGURED |
statusCode | number | 500 |
isPublic | boolean | false |
Vault Errors
VaultLoadError
Thrown when loading a credential vault fails.| Property | Type | Value |
|---|---|---|
code | string | VAULT_LOAD_ERROR |
statusCode | number | 500 |
isPublic | boolean | false |
originalError | Error | undefined | The underlying cause |
VaultNotFoundError
Thrown when a vault entity is not found.| Property | Type | Value |
|---|---|---|
code | string | VAULT_NOT_FOUND |
statusCode | number | 500 |
isPublic | boolean | false |
Token Errors
TokenNotAvailableError
Thrown when a token is not available (e.g., expired or not yet obtained).| Property | Type | Value |
|---|---|---|
code | string | TOKEN_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
TokenStoreRequiredError
Thrown when a token store is required but not configured.| Property | Type | Value |
|---|---|---|
code | string | TOKEN_STORE_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
TokenLeakDetectedError
Thrown when a potential token leak is detected (e.g., token appearing in logs or responses).| Property | Type | Value |
|---|---|---|
code | string | TOKEN_LEAK_DETECTED |
statusCode | number | 500 |
isPublic | boolean | false |
Provider & Registration Errors
NoProviderIdError
Thrown when no provider ID is available during auth flow.| Property | Type | Value |
|---|---|---|
code | string | NO_PROVIDER_ID |
statusCode | number | 500 |
isPublic | boolean | false |
CredentialProviderAlreadyRegisteredError
Thrown when attempting to register a credential provider that is already registered.| Property | Type | Value |
|---|---|---|
code | string | CREDENTIAL_PROVIDER_ALREADY_REGISTERED |
statusCode | number | 500 |
isPublic | boolean | false |
AuthProvidersNotConfiguredError
Thrown when auth providers are not configured.| Property | Type | Value |
|---|---|---|
code | string | AUTH_PROVIDERS_NOT_CONFIGURED |
statusCode | number | 500 |
isPublic | boolean | false |
OrchestratedAuthNotAvailableError
Thrown when orchestrated auth is not available in the current context.| Property | Type | Value |
|---|---|---|
code | string | ORCHESTRATED_AUTH_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
Session Errors
SessionSecretRequiredError
Thrown when a session secret is required but not configured.| Property | Type | Value |
|---|---|---|
code | string | SESSION_SECRET_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
SessionIdEmptyError
Thrown when a session ID is empty.| Property | Type | Value |
|---|---|---|
code | string | SESSION_ID_EMPTY |
statusCode | number | 500 |
isPublic | boolean | false |
ElicitationSecretRequiredError
Thrown when the elicitation secret is required but not configured.| Property | Type | Value |
|---|---|---|
code | string | ELICITATION_SECRET_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
Scope & Access Errors
ScopeDeniedError
Thrown when scope access is denied for a provider.| Property | Type | Value |
|---|---|---|
code | string | SCOPE_DENIED |
statusCode | number | 500 |
isPublic | boolean | false |
InMemoryStoreRequiredError
Thrown when an in-memory store is required but not available.| Property | Type | Value |
|---|---|---|
code | string | INMEMORY_STORE_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
OrchestratorJwksNotAvailableError
Thrown when the orchestrator JWKS endpoint is not available.| Property | Type | Value |
|---|---|---|
code | string | ORCHESTRATOR_JWKS_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |