auth

package
v3.0.0-alpha.4 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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginPost

func LoginPost(c *gin.Context)

func LogoutPost

func LogoutPost(c *gin.Context)

func OtpPost

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)

func TokenServiceGetPublicKey

func TokenServiceGetPublicKey(c *gin.Context)

Types

type LoginRequestData

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

type LoginResponse

type LoginResponse struct {
	Scopes    []*pufferpanel.Scope `json:"scopes,omitempty"`
	OtpNeeded bool                 `json:"otpNeeded,omitempty"`
}

type OtpRequestData

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