DiceApiKeyProperties

data class DiceApiKeyProperties(val enabled: Boolean = false, val keys: List<String> = emptyList(), val headerName: String = ApiKeyAuthenticator.DEFAULT_HEADER_NAME, val pathPatterns: List<String> = listOf("/api/v1/**"))

Configuration properties for DICE API key authentication.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, keys: List<String> = emptyList(), headerName: String = ApiKeyAuthenticator.DEFAULT_HEADER_NAME, pathPatterns: List<String> = listOf("/api/v1/**"))

Properties

Link copied to clipboard
val enabled: Boolean = false

Enable API key authentication (default: false)

Link copied to clipboard

Header name for the API key (default: X-API-Key)

Link copied to clipboard

List of valid API keys. For production, use a custom ApiKeyAuthenticator instead.

Link copied to clipboard

Path patterns to protect (default: /api/v1/ and subpaths)