constant

package
v0.0.0-...-6019785 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Salt                       = "go@im&oauth2"
	Redis                      = "oauth2.redis"
	Memory                     = "oauth2.memory"
	TimeFormat                 = "2006-01-02 15:04:05"
	TokenDefaultTimeout        = 60 * 60 * 2
	RefreshTokenDefaultTimeout = 60 * 60 * 24 * 7
	TokenDefaultType           = "bearer"
	Authorization              = "Authorization"
	Password                   = "password"
	RefreshToken               = "refresh_token"
	CheckToken                 = "check_token"
	CancelToken                = "cancel_token"
	ProgramError               = "程序内部意外的错误,请联系管理员!"
	ReadConfigError            = "读取配置文件错误!"
	RequestBodyError           = "请求参数错误!"
	AuthorizationError         = "Authorization不符合规范!"
	ClientAuthorizationError   = "客户端未授权!"
	UsernameOrPasswordError    = "账号或者密码错误!"
	UserAuthorizationError     = "用户未授权!"
	AccessTokenTimeoutError    = "access_token已经失效!请重新登录"
	RefreshTokenTimeoutError   = "refresh_token已经失效!请重新登录"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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