Documentation ¶ Index ¶ type Introspection func (i *Introspection) Validate(ctx context.Context, tokenWithBearer string, scopes []string) error type JWT func (j *JWT) Validate(ctx context.Context, tokenWithBearer string, scopes []string) error type OAuth2 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 } Source Files ¶ View all Source files introspection.go jwt.go oauth2.go Click to show internal directories. Click to hide internal directories.