oauth

package
v0.0.0-...-d818996 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsent

func GetConsent(c *gin.Context)

func GetLogin

func GetLogin(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func PostConsent

func PostConsent(c *gin.Context)

func PostLogin

func PostLogin(c *gin.Context)

Types

type ConsentFormData

type ConsentFormData struct {
	ConsentChallenge string   `validate:"required" form:"consent_challenge"`
	GrantScope       []string `validate:"required" form:"grant_scope"`
}

type LoginFormData

type LoginFormData struct {
	LoginChallenge string `validate:"required" form:"login_challenge"`
	Email          string `validate:"required" form:"email"`
	Password       string `validate:"required" form:"password"`
	RememberMe     string `validate:"required" form:"remember_me"`
}

Jump to

Keyboard shortcuts

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