Documentation ¶
Index ¶
- func DeleteClientMap(id string) (map[string]struct{}, bool)
- func GetClientMap(id string) map[string]struct{}
- func NewFactory() auth.IAuthFactory
- func Register()
- func RegisterClient(clientId string, client IClient)
- func RemoveClient(clientId string)
- func SetClientMap(id string, clientIds map[string]struct{})
- type Config
- type IClient
- type Manager
- type Pattern
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClientMap ¶ added in v0.17.0
func GetClientMap ¶ added in v0.17.0
func RegisterClient ¶ added in v0.17.0
func RemoveClient ¶ added in v0.15.12
func RemoveClient(clientId string)
func SetClientMap ¶ added in v0.17.0
Types ¶
type Config ¶
type Config struct { application.Auth Users []*User `json:"users" label:"用户列表"` }
type IClient ¶ added in v0.15.12
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager 管理oauth2配置
func NewManager ¶
func NewManager() *Manager
type Pattern ¶
type Pattern struct { ClientId string `json:"client_id" label:"客户端ID"` ClientSecret string `json:"client_secret" label:"客户端密钥"` ClientType string `json:"client_type" label:"客户端类型" enum:"public,confidential"` HashSecret bool `json:"hash_secret" label:"是否Hash加密"` RedirectUrls []string `json:"redirect_urls" label:"重定向URL列表"` }
Click to show internal directories.
Click to hide internal directories.