resolver

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Resolver)

Option configures the resolver

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) Option

WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance

type Resolver

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

Resolver implements token resolution

func New

func New(tokenIntrospectionURL string, opts ...Option) *Resolver

New creates new token resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(tk string) (*token.Introspection, error)

Resolve returns token information based on token

Jump to

Keyboard shortcuts

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