controllers

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginPasskeyLogin

func BeginPasskeyLogin(c *gin.Context)

func CompleteLogin added in v1.17.2

func CompleteLogin(c *gin.Context)

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

func DashboardLogin added in v1.17.2

func DashboardLogin(c *gin.Context)

DashboardLogin 用户后台登录

func FinishPasskeyLogin

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

GetLoginLink 获取登录指定 APP 地址

func GetSelfLoginLink(c *gin.Context)

GetSelfLoginLink 获取登录控制系统地址

func ThirdPartyLogin

func ThirdPartyLogin(c *gin.Context)

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

func ThirdPartySelfLogin

func ThirdPartySelfLogin(c *gin.Context)

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

func VerifyMfa

func VerifyMfa(c *gin.Context)

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