openidvalidator

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrForbidden will be returned if user scopes does not satisfy required scopes
	ErrForbidden = errors.New("access is forbidden")
)

Functions

func New

func New(ctx context.Context, wg *sync.WaitGroup, cfg Config) (access.Validator, error)

New creates validator which implements access.Validator interface discoveryURI is the uri to the openid discovery document. evaluationInterval is the interval (in minutest) after which the RSAPublicKey will be automatically re-acquired from the discovery source. DefaultRequiredScopes is self-explanatory. Will be used in case if requiredScopes were not specified on method call.

Types

type Config

type Config struct {
	Logger                logrus.FieldLogger
	Domain                string
	EvaluationInterval    time.Duration
	DefaultRequiredScopes []string
}

Config for new openID validator

Jump to

Keyboard shortcuts

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