validator

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Authority string        `yaml:"authority" json:"authority"`
	Audience  string        `yaml:"audience" json:"audience"`
	HTTP      client.Config `yaml:"http" json:"http"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Validator

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

Validator Client.

func New

func New(ctx context.Context, config Config, fileWatcher *fsnotify.Watcher, logger log.Logger, tracerProvider trace.TracerProvider) (*Validator, error)

func (*Validator) AddCloseFunc

func (v *Validator) AddCloseFunc(f func())

AddCloseFunc adds a function to be called by the Close method. This eliminates the need for wrapping the Client.

func (*Validator) Close

func (v *Validator) Close()

func (*Validator) OpenIDConfiguration

func (v *Validator) OpenIDConfiguration() openid.Config

func (*Validator) Parse

func (v *Validator) Parse(token string) (jwt.MapClaims, error)

func (*Validator) ParseWithClaims

func (v *Validator) ParseWithClaims(token string, claims jwt.Claims) error

Jump to

Keyboard shortcuts

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