oauth2

package
v0.0.0-...-7627a42 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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