openid

package
v0.0.0-...-c8afd98 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenKey = "token"
)

Variables

View Source
var ErrNoSigningKeyFound = fmt.Errorf("no signing key found in the JWK set")

Functions

Types

type OpenidConfig

type OpenidConfig struct {
	// The OpenID issuer identifier URL. The provider's OpenID configuration
	// will be fetched from <Issuer>/.well-known/openid-configuration.
	// The issuer URL must exactly match the issuer in the well-known
	// configuration, including any trailing slashes.
	Issuer string `mapstructure:"issuer"`
}

type OpenidMiddleware

type OpenidMiddleware struct {
	// contains filtered or unexported fields
}

func (*OpenidMiddleware) Description

func (m *OpenidMiddleware) Description() string

func (*OpenidMiddleware) Handle

func (m *OpenidMiddleware) Handle(c *fiber.Ctx) error

type WellKnownConfiguration

type WellKnownConfiguration struct {
	Issuer           string `json:"issuer"`
	AuthEndpoint     string `json:"authorization_endpoint"`
	TokenEndpoint    string `json:"token_endpoint"`
	UserinfoEndpoint string `json:"userinfo_endpoint"`
	JwksUri          string `json:"jwks_uri"`
}

Jump to

Keyboard shortcuts

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