Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AuthorizationKey is the key for the authorization header and gRPC metadata AuthorizationKey = "Authorization" // RefreshTokenCookieName is the name of the refresh token cookie RefreshTokenCookieName = "X-Refresh-Token" // AccessTokenCookieName is the name of the access token cookie AccessTokenCookieName = "X-Access-Token" // XForwardedForKey is the key for the X-Forwarded-For header XForwardedForKey = "X-Forwarded-For" // RemoteAddrKey is the key for the remote address RemoteAddrKey = "Remote-Addr" // XRealIPKey is the key for the X-Real-IP header XRealIPKey = "X-Real-IP" )
Variables ¶
View Source
var ( ErrInvalidAuthorization = errors.New("invalid authorization HTTP header or gRPC metadata") ErrMissingAuthorization = errors.New("missing authorization HTTP header or gRPC metadata") ErrClientIPNotFound = errors.New("client IP address not found in request context") )
View Source
var ( // AuthHeaders are the headers used for authentication AuthHeaders = []string{ AuthorizationKey, RefreshTokenCookieName, AccessTokenCookieName, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.