auth

package
v0.0.0-...-c89a2db Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 25 Imported by: 4

Documentation

Index

Constants

View Source
const (
	NoUseGinJwtError = "NoUseGinJwtError"
)

Variables

View Source
var (
	AuthGroup *gin.RouterGroup // auth group

)

Functions

func GetUserFromJWT

func GetUserFromJWT(c *gin.Context) model.User

func Setup3rdAuth

func Setup3rdAuth(r *gin.Engine, cfg config.AuthConfig)

func SetupAuth

func SetupAuth(r *gin.Engine)

Types

This section is empty.

Jump to

Keyboard shortcuts

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