Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureValidToken ¶
func EnsureValidToken(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
type CustomClaims ¶
type CustomClaims struct {
Scope string `json:"scope"`
}
CustomClaims contains custom data we want from the token.
func (CustomClaims) HasScope ¶
func (c CustomClaims) HasScope(expectedScope string) bool
Click to show internal directories.
Click to hide internal directories.