Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoAuthHeader is returned when the request did not contain an auth header. ErrNoAuthHeader = status.Errorf(codes.Unauthenticated, "no authorization header") // ErrParseJWT is returned when the header or JWT failed to parse correctly. ErrParseJWT = status.Errorf(codes.Unauthenticated, "invalid authorization header") // ErrAuthenticationFailed is returned when the jwt cannot be authenticated. ErrAuthenticationFailed = status.Errorf(codes.Unauthenticated, "authentication failed") // ErrClaimsValidationFailed is returned when the jwts claims are insufficient for the target method. ErrClaimsValidationFailed = status.Errorf(codes.PermissionDenied, "insufficient permissions") )
Auth errors that are safe to return over the wire.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.