auth

package
v0.0.0-...-d7ce4c8 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIKey

func CheckAPIKey(c *gin.Context)

CheckAPIKey ...

func CheckCookie

func CheckCookie(c *gin.Context)

CheckCookie ...

func DeleteCookie

func DeleteCookie(c *gin.Context)

DeleteCookie ...

func GetDefault

func GetDefault(c *gin.Context)

GetDefault ...

func GetLogin

func GetLogin(c *gin.Context)

GetLogin ...

func GetLogout

func GetLogout(c *gin.Context)

GetLogout ...

func PostLogin

func PostLogin(c *gin.Context)

PostLogin ...

func SetCookie

func SetCookie(c *gin.Context, adminID string)

SetCookie ...

func VerifyJWTToken

func VerifyJWTToken(c *gin.Context)

VerifyJWTToken ...

Types

type Authentication

type Authentication struct {
	Email    string `json:"email" form:"email"`
	Password string `json:"password" form:"password"`
}

Authentication ...

func (Authentication) GetCurrentUser

func (Authentication) GetCurrentUser(context *admin.Context) qor.CurrentUser

GetCurrentUser ...

func (Authentication) LoginURL

func (Authentication) LoginURL(context *admin.Context) string

LoginURL ...

func (Authentication) LogoutURL

func (Authentication) LogoutURL(context *admin.Context) string

LogoutURL ...

Jump to

Keyboard shortcuts

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