auth

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(c *gin.Context)

func LoginPost

func LoginPost(c *gin.Context)

func OtpPost added in v2.3.0

func OtpPost(c *gin.Context)

func Reauth

func Reauth(c *gin.Context)

func RegisterPost

func RegisterPost(c *gin.Context)

func RegisterRoutes

func RegisterRoutes(rg *gin.RouterGroup)

Types

type LoginOtpResponse added in v2.3.0

type LoginOtpResponse struct {
	OtpNeeded bool `json:"otpNeeded"`
}

type LoginRequestData

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

type LoginResponse

type LoginResponse struct {
	Session string              `json:"session"`
	Scopes  []pufferpanel.Scope `json:"scopes,omitempty"`
}

type OtpRequestData added in v2.3.0

type OtpRequestData struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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