response

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_WRISTBAND_DURATION = int64(300)

Variables

This section is empty.

Functions

func NewSigningKey

func NewSigningKey(name string, algorithm string, singingKey []byte) (*jose.JSONWebKey, error)

Types

type Claims

type Claims map[string]interface{}

func (*Claims) Valid

func (c *Claims) Valid() error

type DynamicJSON

type DynamicJSON struct {
	Properties []json.JSONProperty
}

func NewDynamicJSONResponse

func NewDynamicJSONResponse(properties []json.JSONProperty) *DynamicJSON

func (*DynamicJSON) Call

func (j *DynamicJSON) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)

type Plain added in v0.14.0

type Plain struct {
	json.JSONValue
}

func (*Plain) Call added in v0.14.0

func (p *Plain) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)

type Wristband

type Wristband struct {
	Issuer        string
	CustomClaims  []json.JSONProperty
	TokenDuration int64
	SigningKeys   []jose.JSONWebKey
}

func NewWristbandConfig

func NewWristbandConfig(issuer string, claims []json.JSONProperty, tokenDuration *int64, signingKeys []jose.JSONWebKey) (*Wristband, error)

func (*Wristband) Call

func (w *Wristband) Call(pipeline auth.AuthPipeline, ctx context.Context) (interface{}, error)

func (*Wristband) GetIssuer

func (w *Wristband) GetIssuer() string

func (*Wristband) JWKS

func (w *Wristband) JWKS() (string, error)

func (*Wristband) OpenIDConfig

func (w *Wristband) OpenIDConfig() (string, error)

Jump to

Keyboard shortcuts

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