Factory

@Serializable
sealed interface Factory

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "!OpenIdConnect")
data class OpenIdConnect @JvmOverloads constructor(val issuerUrl: URL, val clientId: String, val clientSecret: String, var rules: List<Authenticator.MethodRule> = DEFAULT_RULES, var instantSource: InstantSource = InstantSource.system()) : Authenticator.Factory
Link copied to clipboard
@Serializable
@SerialName(value = "!SingleRootUser")
data class SingleRootUser @JvmOverloads constructor(val password: String? = System.getenv("XTDB_PASSWORD")) : Authenticator.Factory
Link copied to clipboard
@Serializable
@SerialName(value = "!UserList")
data class UserList @JvmOverloads constructor(val users: Map<String, PasswordHash>, var rules: List<Authenticator.MethodRule> = listOf(MethodRule(PASSWORD))) : Authenticator.Factory

Functions

Link copied to clipboard
open fun isSuperuser(userId: String): Boolean
Link copied to clipboard
open fun knownUsers(): List<String>
Link copied to clipboard
abstract fun open(allocator: BufferAllocator, querySource: IQuerySource, dbCatalog: Database.Catalog): Authenticator