oauth2

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Introspection

type Introspection struct {
	Cfg    *config.Oauth
	Logger *logrus.Logger
	Cache  *ccache.Cache
}

func (*Introspection) Validate

func (i *Introspection) Validate(ctx context.Context, tokenWithBearer string, scopes []string) error

type JWT

type JWT struct {
	Cfg       *config.Oauth
	Logger    *logrus.Logger
	PubKey    *rsa.PublicKey
	SecretKey []byte
}

func (*JWT) Validate

func (j *JWT) Validate(ctx context.Context, tokenWithBearer string, scopes []string) error

type OAuth2

type OAuth2 interface {
	Validate(ctx context.Context, tokenWithBearer string, scopes []string) error
}

Jump to

Keyboard shortcuts

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