← Back to Kairo Docs|API Reference (Dokka)

AuthConfig

abstract class AuthConfig

Configures authentication for all REST endpoints in the Server.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun AuthenticationConfig.configure()

Installs Ktor authentication providers (for example bearer token extraction).

Link copied to clipboard
open suspend fun AuthReceiver<*>.default()

Called when an endpoint does not define its own auth block. Override to set a default policy.

Link copied to clipboard
open suspend fun AuthReceiver<*>.fallback()

Called as a last resort after all other auth blocks fail. Override to customize error behavior.