oauth2

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(ctx *gin.Context)

Authorize authorize post

func AuthorizePage

func AuthorizePage(ctx *gin.Context)

AuthorizePage 授权页面

func DeviceActivate added in v0.5.1

func DeviceActivate(ctx *gin.Context)

DeviceActivate device activate post

func DeviceActivatePage added in v0.5.1

func DeviceActivatePage(ctx *gin.Context)

DeviceActivatePage ...

func DeviceCode added in v0.2.0

func DeviceCode(ctx *gin.Context)

DeviceCode ...

func DeviceConfirmation added in v0.5.1

func DeviceConfirmation(ctx *gin.Context)

DeviceConfirmation ...

func DeviceConfirmationPage added in v0.5.1

func DeviceConfirmationPage(ctx *gin.Context)

DeviceConfirmationPage ...

func DeviceErrorPage added in v0.5.1

func DeviceErrorPage(ctx *gin.Context)

DeviceErrorPage ...

func DeviceSuccessPage added in v0.5.1

func DeviceSuccessPage(ctx *gin.Context)

DeviceSuccessPage ...

func GeetestRegister added in v0.4.3

func GeetestRegister(ctx *gin.Context)

GeetestRegister 验证初始化接口,GET请求

func GetErrorMessage

func GetErrorMessage(ctx *gin.Context) string

GetErrorMessage return the first error message

func Init

func Init()

Init 初始化

func Login

func Login(ctx *gin.Context)

Login login post

func LoginPage

func LoginPage(ctx *gin.Context)

LoginPage 登录页面

func RemoveRepeat added in v0.3.0

func RemoveRepeat(slc []string) (result []string)

RemoveRepeat 过滤重复元素

func SetErrorMessage

func SetErrorMessage(ctx *gin.Context, msg string) error

SetErrorMessage set a error message

func Token

func Token(ctx *gin.Context)

Token ...

func TokenIntrospection added in v0.2.0

func TokenIntrospection(ctx *gin.Context)

TokenIntrospection ...

func TokenRevoke added in v0.2.0

func TokenRevoke(ctx *gin.Context)

TokenRevoke ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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