oauth2

package
v0.0.0-...-5df0669 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const WellKnown = "/.well-known/oauth-authorization-server"

Variables

This section is empty.

Functions

func BuildDiscoveryUrl

func BuildDiscoveryUrl(issuer string) (string, error)

Types

type AccessTokenResponse

type AccessTokenResponse map[string]interface{}

func (AccessTokenResponse) Println

func (atr AccessTokenResponse) Println()

type AuthorizationResponse

type AuthorizationResponse struct {
	State   string
	Code    string
	Token   string
	IdToken string
}

func (AuthorizationResponse) HasCode

func (ar AuthorizationResponse) HasCode() bool

func (AuthorizationResponse) HasTokens

func (ar AuthorizationResponse) HasTokens() bool

func (AuthorizationResponse) Println

func (ar AuthorizationResponse) Println()

type ErrorResponse

type ErrorResponse struct {
	ErrorCode        string
	ErrorDescription string
	ErrorUri         *url.URL
	State            string
}

func (ErrorResponse) Error

func (er ErrorResponse) Error() string

func (ErrorResponse) Println

func (er ErrorResponse) Println()

Jump to

Keyboard shortcuts

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