Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Claims claimsKey = "claims"
Functions ¶
Types ¶
type AuthorizationRequired ¶
type AuthorizationRequired interface {
IsAuthorizationRequired() bool
}
type DefaultToken ¶
type PublicPrivateKey ¶
type PublicPrivateKey struct { PublicKey *rsa.PublicKey PrivateKey *rsa.PrivateKey }
type Settings ¶
type Settings struct { Scheme string Issuer string Audience string PrivateKeyPath string PublicKeyPath string RefreshTokenExpire time.Duration AccessTokenExpire time.Duration PublicPrivateKey PublicPrivateKey Verifier jwt.Verifier Signer jwt.Signer }
func (*Settings) AuthInterceptor ¶
func (s *Settings) AuthInterceptor() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.