oauth2

package
v0.0.0-...-6b846f9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(w http.ResponseWriter, r *http.Request)

Types

type AuthorizationRequest

type AuthorizationRequest struct {
	ResponseType        string    `json:"response_type"`
	ClientID            uuid.UUID `json:"client_id"`
	RedirectURI         string    `json:"redirect_uri"`
	Scope               []string  `json:"scope"`
	State               string    `json:"state"`
	CodeChallenge       string    `json:"code_challenge"`
	CodeChallengeMethod string    `json:"code_challenge_method"`
}

type TokenRequest

type TokenRequest struct {
	GrantType         string    `json:"grant_type"`
	RedirectURI       string    `json:"redirect_uri"`
	ClientID          uuid.UUID `json:"client_id"`
	AuthorizationCode string    `json:"authorization_code"`
	CodeVerifier      string    `json:"code_verifier"`
}

Jump to

Keyboard shortcuts

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