Auth方案;计划
How a service expects a tool to authenticate, such as with an API key, an HTTP credential or OAuth2. Most schemes match OpenAPI security schemes; OpenIdConnect gives a provider's endpoints directly.
Inheritors
类型
Link copied to clipboard
data class ApiKey(val name: String, val location: AuthScheme.ApiKey.Location, val description: String? = null) : AuthScheme
一种 API 密钥方案:明确说明密钥的发送方式以及其对应的名称。
Link copied to clipboard
data class Http(val scheme: String, val bearerFormat: String? = null, val description: String? = null) : AuthScheme
一种 HTTP 认证方案,例如…… basic 或者 bearer.
Link copied to clipboard
data class OAuth2(val flows: AuthScheme.OAuth2.Flows, val issuerUrl: String? = null, val description: String? = null) : AuthScheme
一种 OAuth2 协议方案:该方案描述了服务支持的流程(包括各个流程的详细步骤)、相应的端点(API 接口)以及这些端点的权限范围(即用户可以使用这些端点执行哪些操作)。
Link copied to clipboard
data class OpenIdConnect(val authorizationEndpoint: String, val tokenEndpoint: String, val userinfoEndpoint: String? = null, val revocationEndpoint: String? = null, val tokenEndpointAuthMethodsSupported: List<String>? = null, val grantTypesSupported: List<String>? = null, val scopes: List<String>? = null, val description: String? = null) : AuthScheme
这是一个 OpenID Connect 方案,其中提供了提供商的端点(endpoints)的直接地址。
Link copied to clipboard
data class OpenIdConnectUrl(val openIdConnectUrl: String, val description: String? = null) : AuthScheme
由提供商提供的 Discovery URL 指定的 OpenID Connect 方案。