package
0.0.0-20240910154117-32e2492151b7
Repository: https://github.com/gogatekeeper/gatekeeper.git
Documentation: pkg.go.dev
# Functions
ExtractIdentity parse the jwt token and extracts the various elements is order to construct.
GetAccessCookieExpiration calculates the expiration of the access token cookie.
No description provided by the author
GetIdentity retrieves the user identity from a request, either from a session cookie or a bearer token.
GetRefreshTokenFromCookie returns the refresh token from the cookie if any.
No description provided by the author
getTokenInBearer retrieves a access token from the authorization header.
getTokenInCookie retrieves the access token from the request cookies.
getTokenInHeader retrieves a token from the header.
getTokenInRequest returns the token from the http request
nolint:cyclop.
retrieveRefreshToken retrieves the refresh token from store or cookie.