Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AuthorizationMetadataKey is the key for the authorization metadata AuthorizationMetadataKey = "authorization" // BearerPrefix is the prefix for the bearer token BearerPrefix = "Bearer" // CtxTokenClaimsKey is the key for the JWT context claims CtxTokenClaimsKey = "jwt_claims" )
Variables ¶
View Source
var ( NilGRPCInterceptionsError = errors.New("grpc interceptions map cannot be nil") MissingMetadataError = errors.New("missing metadata") InternalServerError = errors.New("internal server error") AuthorizationMetadataInvalidError = errors.New("authorization metadata invalid") AuthorizationMetadataNotProvidedError = errors.New("authorization metadata is not provided") )
Functions ¶
This section is empty.
Types ¶
type AuthorizationIdx ¶
type AuthorizationIdx int
const (
TokenIdx AuthorizationIdx = iota
)
func (AuthorizationIdx) Int ¶
func (i AuthorizationIdx) Int() int
Int returns the integer value of the index
Click to show internal directories.
Click to hide internal directories.