controllers

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginPasskeyLogin

func BeginPasskeyLogin(c *gin.Context)

func FinishPasskeyLogin

func FinishPasskeyLogin(c *gin.Context)
func GetLoginLink(c *gin.Context)

GetLoginLink 获取登录指定 APP 地址

func GetSelfLoginLink(c *gin.Context)

GetSelfLoginLink 获取登录控制系统地址

func Login

func Login(c *gin.Context)

Login 用户后台登录

func ThirdPartyLogin

func ThirdPartyLogin(c *gin.Context)

ThirdPartyLogin 校验第三方登录回调结果,生成目标 APP 回调链接

func ThirdPartySelfLogin

func ThirdPartySelfLogin(c *gin.Context)

ThirdPartySelfLogin 校验第三方登录回调结果,生成控制系统回调链接

func VerifyMfa

func VerifyMfa(c *gin.Context)

func VerifyToken

func VerifyToken(c *gin.Context)

VerifyToken 第三方应用后端调用校验认证权威性

Types

type ThirdPartyLoginContext

type ThirdPartyLoginContext struct {
	User    *dao.User
	AppInfo *dao.App
	Groups  []string
	Ip      string
}

Jump to

Keyboard shortcuts

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