Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationServer ¶
type AuthorizationServer struct { Enable bool `yaml:"enable"` // 是否支持RefreshToken SupportRefreshToken bool `yaml:"supportRefreshToken"` // 是否重复使用RefreshToken ReuseRefreshToken bool `yaml:"reuseRefreshToken"` }
AuthorizationServer 授权服务器配置
type Jwt ¶
type Jwt struct { SigningMethod string `yaml:"signingMethod"` SigningKey string `yaml:"signingKey"` }
Jwt config
type OAuth2 ¶
type OAuth2 struct { // 是否包含 grantType IncludeGrantType bool `yaml:"includeGrantType"` Jwt Jwt `yaml:"jwt"` ResourceServer ResourceServer `yaml:"resourceServer"` AuthorizationServer AuthorizationServer `yaml:"authorizationServer"` }
OAuth2 配置
type ResourceServer ¶
ResourceServer 资源服务器配置
Click to show internal directories.
Click to hide internal directories.