Versions in this module Expand all Collapse all v0 v0.2.0 Jul 28, 2021 v0.1.0 Apr 15, 2021 Changes in this version + func CaptureClaim(claim, metadataKey string) func(*Options) + func HMAC(key []byte) func(*Options) + func Optional(o *Options) + func RSA(key *rsa.PublicKey) func(*Options) + func VerifyClaims(iss, aud string) func(*Options) + type Authorizor struct + func New(optFns ...func(*Options)) *Authorizor + func (a *Authorizor) Register(pattern string, r *grappapb.Rule) + func (a *Authorizor) UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error) + type Context struct + FullMethod string + ID string + Rule *grappapb.Rule + type Options struct + ClaimsMap map[string]string + ClaimsVerifiers []VerifyFunc + ErrorFn func(Context, error) error + KeyFn func(Context, *jwt.Token) (interface{}, error) + Optional bool + TokenFn func(Context, metadata.MD) (string, bool) + type Registry interface + Register func(pattern string, r *grappapb.Rule) + type VerifyFunc func(Context, jwt.MapClaims) error + func VerifyAudience(aud []string) VerifyFunc + func VerifyIssuer(iss string) VerifyFunc + func VerifyScope() VerifyFunc