auth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionKeyLoginID = "loginId"
)

Variables

View Source
var (
	GetAuth AuthRegister

	LoginInvalid = errors.New("login id is invalid")
	GetAuthError = errors.New("get oauthInfo error")
)

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Login(c *gin.Context) error
	Logout(c *gin.Context) error
	Authorize(c *gin.Context) error
}

func NewConfigAuth

func NewConfigAuth() Auth

func NewEmptyAuth

func NewEmptyAuth() Auth

type AuthRegister

type AuthRegister func() Auth

Jump to

Keyboard shortcuts

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