AuthConfig
//fluxbase-kotlin/io.github.nimbleflux.fluxbase.auth/AuthConfig
AuthConfig
Section titled “AuthConfig”[jvm]
@Serializable
data class AuthConfig(val signupEnabled: Boolean = true, val passwordLoginEnabled: Boolean = true, val passwordMinLength: Int = 8, val passwordRequireUppercase: Boolean = false, val passwordRequireLowercase: Boolean = false, val passwordRequireNumber: Boolean = false, val passwordRequireSpecial: Boolean = false, val oauthProviders: List<String> = emptyList(), val samlProviders: List<String> = emptyList(), val emailConfirmationRequired: Boolean = false, val anonKey: String? = null)
Server-side auth configuration returned by GET /api/v1/auth/config. Port of the getAuthConfig() response shape used by the TS SDK and by Wayli (web/src/routes/auth/signin/+page.svelte).
This is the single call that drives all server-driven auth behavior: whether signup is allowed, which OAuth/SAML providers are available, password rules, and CAPTCHA config.
Constructors
Section titled “Constructors”| AuthConfig | [jvm] constructor(signupEnabled: Boolean = true, passwordLoginEnabled: Boolean = true, passwordMinLength: Int = 8, passwordRequireUppercase: Boolean = false, passwordRequireLowercase: Boolean = false, passwordRequireNumber: Boolean = false, passwordRequireSpecial: Boolean = false, oauthProviders: List<String> = emptyList(), samlProviders: List<String> = emptyList(), emailConfirmationRequired: Boolean = false, anonKey: String? = null) |
Properties
Section titled “Properties”| Name | Summary |
|---|---|
| anonKey | [jvm] @SerialName(value = "anon_key") val anonKey: String? Publishable anon key for this instance (the same key the web app exposes to browsers). Lets native clients connect without manual key entry. Null on servers that don’t publish it. |
| emailConfirmationRequired | [jvm] @SerialName(value = "email_confirmation_required") val emailConfirmationRequired: Boolean |
| oauthProviders | [jvm] @SerialName(value = "oauth_providers") val oauthProviders: List<String> |
| passwordLoginEnabled | [jvm] @SerialName(value = "password_login_enabled") val passwordLoginEnabled: Boolean |
| passwordMinLength | [jvm] @SerialName(value = "password_min_length") val passwordMinLength: Int |
| passwordRequireLowercase | [jvm] @SerialName(value = "password_require_lowercase") val passwordRequireLowercase: Boolean |
| passwordRequireNumber | [jvm] @SerialName(value = "password_require_number") val passwordRequireNumber: Boolean |
| passwordRequireSpecial | [jvm] @SerialName(value = "password_require_special") val passwordRequireSpecial: Boolean |
| passwordRequireUppercase | [jvm] @SerialName(value = "password_require_uppercase") val passwordRequireUppercase: Boolean |
| samlProviders | [jvm] @SerialName(value = "saml_providers") val samlProviders: List<String> |
| signupEnabled | [jvm] @SerialName(value = "signup_enabled") val signupEnabled: Boolean |