config

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecuritySetting

type SecuritySetting struct {
	AuthMode     string `json:"authMode" yaml:"authMode"`
	AutoRegister bool   `json:"autoRegister" yaml:"autoRegister"`

	EmailAutoRegister  *bool `json:"emailAutoRegister" yaml:"emailAutoRegister"`
	MobileAutoRegister *bool `json:"mobileAutoRegister" yaml:"mobileAutoRegister"`
	SocialAutoRegister *bool `json:"socialAutoRegister" yaml:"socialAutoRegister"`

	// Server
	Server *ServerConfig.OAuth2ServerSetting `json:"server" yaml:"server"`

	// Token
	Token *TokenConfig.TokenSetting `json:"token" yaml:"token"`
}
var Setting *SecuritySetting = &SecuritySetting{
	AuthMode:     "local",
	AutoRegister: true,
	Server:       ServerConfig.Setting,
	Token:        TokenConfig.Setting,
}

Jump to

Keyboard shortcuts

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