implgrant

package
v0.0.0-...-3545250 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImplGrantMissingClientID = errors.New("Implicit Grant: Missing ClientID")
View Source
var ErrRedirectURIMismatch = errors.New("Implicit Grant: Redirect URL Mismatch")

Functions

func CreatePrincipalRecord

func CreatePrincipalRecord(userName string, password string) (created bool, err error)

func GetAppRegistration

func GetAppRegistration(clientid string) (outputdata [3]string, err error)

func HandleImplicitGrantAuthorize

func HandleImplicitGrantAuthorize(resp http.ResponseWriter, req *http.Request)

func ReadPrincipalRecord

func ReadPrincipalRecord(username string) (outputdata []string, err error)

func ShowLoginPage

func ShowLoginPage(resp http.ResponseWriter, req *http.Request, templatedata Templatedata)

func VerifyCredentials

func VerifyCredentials(formdata LoginPageData) (err error)

func VerifyRequest

func VerifyRequest(req http.Request) (err error)

Types

type LoginPageData

type LoginPageData struct {
	UserName string
	Password string
}

type Templatedata

type Templatedata struct {
	Client_id     string
	Response_type string
	Redirect_uri  string
	CredValid     string
}

Jump to

Keyboard shortcuts

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