config

package
v0.0.0-...-85aee89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

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

type ResourceServer struct {
	Enable     bool   `yaml:"enable"`
	ResourceID string `yaml:"resourceID"`
}

ResourceServer 资源服务器配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL