OAuth
data class OAuth(val providers: Map<String, AuthType.OAuth.ProviderConfig>, val clientCallbackPath: String, val accessTokenTtl: Duration = 15.minutes, val refreshTokenTtl: Duration = 30.days, val maxFailedAttempts: Int = 5, val lockOutDuration: Duration = 15.minutes, val cookieDomain: String? = null, val useSecureCookies: Boolean = true) : AuthType
Delegated to OAuthProvider with standard OAuth interceptors. Supports multiple providers.
Constructors
Link copied to clipboard
constructor(providers: Map<String, AuthType.OAuth.ProviderConfig>, clientCallbackPath: String, accessTokenTtl: Duration = 15.minutes, refreshTokenTtl: Duration = 30.days, maxFailedAttempts: Int = 5, lockOutDuration: Duration = 15.minutes, cookieDomain: String? = null, useSecureCookies: Boolean = true)
Types
Link copied to clipboard
data class ProviderConfig(val provider: OAuthProvider, val clientId: String, val clientSecret: String, val redirectUri: String, val scopes: List<String> = provider.defaultScopes)
Configuration for an OAuth provider.