package
0.0.0-20240910154117-32e2492151b7
Repository: https://github.com/gogatekeeper/gatekeeper.git
Documentation: pkg.go.dev
# Functions
capitalize capitalizes the first letter of a word.
CheckClaim checks whether claim in userContext matches claimName, match.
containedIn checks if a value in a list of a strings.
containsSubString checks if substring exists.
decodeKeyPairs converts a list of strings (key=pair) to a map.
defaultTo returns the value of the default.
dialAddress extracts the dial address from the url.
fileExists check if a file exists.
No description provided by the author
getHashKey returns a hash of the encodes jwt token.
GetRefreshedToken attempts to refresh the access token, returning the parsed token, optionally with a renewed refresh token and the time the access and refresh tokens expire
NOTE: we may be able to extract the specific (non-standard) claim refresh_expires_in and refresh_expires from response.RawBody.
getRequestHostURL returns the hostname from the request.
getWithin calculates a duration of x percent of the time period, i.e.
hasAccess checks we have all or any of the needed items in the list.
isUpgradedConnection checks to see if the request is requesting.
IsValidHTTPMethod ensure this is a valid http method type.
mergeMaps simples copies the keys from source to destination.
NewOAuth2Config returns a oauth2 config.
No description provided by the author
printError display the command line usage and error.
realIP retrieves the client ip address from a http request.
toHeader is a helper method to play nice in the headers.
transferBytes transfers bytes between the sink and source.
tryDialEndpoint dials the upstream endpoint via plain HTTP.
tryUpdateConnection attempt to upgrade the connection to a http pdy stream.
VerifyOIDCTokens.
No description provided by the author
WithOAuthURI returns the oauth uri.
# Variables
No description provided by the author