Flow

sealed interface Flow

An OAuth2 flow: its endpoints and the scopes to request.

Inheritors

类型

Link copied to clipboard
data class AuthorizationCode(val authorizationUrl: String, val tokenUrl: String, val refreshUrl: String? = null, val scopes: Map<String, String> = emptyMap()) : AuthScheme.OAuth2.Flow

授权代码的流程。

Link copied to clipboard
data class ClientCredentials(val tokenUrl: String, val refreshUrl: String? = null, val scopes: Map<String, String> = emptyMap()) : AuthScheme.OAuth2.Flow

客户端凭据的传输过程。

Link copied to clipboard
data class Implicit(val authorizationUrl: String, val refreshUrl: String? = null, val scopes: Map<String, String> = emptyMap()) : AuthScheme.OAuth2.Flow

这种隐式的流程(implicit flow)。

Link copied to clipboard
data class Password(val tokenUrl: String, val refreshUrl: String? = null, val scopes: Map<String, String> = emptyMap()) : AuthScheme.OAuth2.Flow

资源所有者的密码设置流程。

属性(Properties)

Link copied to clipboard
abstract val refreshUrl: String?

用于刷新令牌的端点(endpoint)。

Link copied to clipboard
abstract val scopes: Map<String, String>

需要请求的权限范围(scopes),每个权限范围都对应有其相应的描述(description)。