controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const StdOidcConfigURI = "/.well-known/openid-configuration"

StdOidcConfigURI is the standard endpoint for oidc config

Variables

This section is empty.

Functions

func Authorize

func Authorize(c echo.Context) error

Authorize provides id_token and access_token to anyone who asks

func AuthorizeV2 added in v0.1.0

func AuthorizeV2(c echo.Context) error

func Jwks

func Jwks(c echo.Context) error

Jwks provides oidc keyset

func OidcConfig

func OidcConfig(c echo.Context) error

OidcConfig returns config for host

func OpenIDConfigV2 added in v0.1.0

func OpenIDConfigV2(c echo.Context) error

func ParseExtraClaims added in v0.0.6

func ParseExtraClaims(addClaims []byte) (map[string]interface{}, error)

func Token added in v0.0.5

func Token(c echo.Context) error

Token provides id_token and access_token to anyone who asks

func TokenV2 added in v0.1.0

func TokenV2(claims map[string]interface{}) func(c echo.Context) error

Types

type TokenErrorResponse added in v0.0.5

type TokenErrorResponse struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
	ErrorCodes       []int  `json:"error_codes"`
	Timestamp        string `json:"timestamp"`
	TraceID          string `json:"trace_id"`
	CorrelationID    string `json:"correlation_id"`
}

TokenErrorResponse error type

type TokenOKResponse added in v0.0.5

type TokenOKResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    string `json:"expires_in"`
	ExpiresOn    string `json:"expires_on"`
	Resource     string `json:"resource"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
	IDToken      string `json:"id_token"`
}

TokenOKResponse ok type

Jump to

Keyboard shortcuts

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