# Packages
Package mock is a generated GoMock package.
# Functions
AssertMatchingAudience checks if the required audience is in the jwt list of audiences.
ExtractGroups extracts the list of groups.
MakeEndpointAvailableCheckMW makes a middleware that ensure a feature is enabled at admin configuration level in the current context.
MakeEndpointInstrumentingMW makes a middleware that measure the endpoints response time and send the metrics to influx DB.
MakeEndpointLoggingInMW makes a logging middleware.
MakeEndpointLoggingInOutMW makes a logging middleware.
MakeEndpointLoggingMW makes a logging middleware.
MakeEndpointLoggingOutMW makes a logging middleware.
MakeHTTPBasicAuthenticationFuncMW retrieve the token from the HTTP header 'Basic' and check credentials according to the given callback function If there is no such header, the request is not allowed.
MakeHTTPBasicAuthenticationMapMW retrieve the token from the HTTP header 'Basic' and check credentials according to the given credentials map If there is no such header, the request is not allowed.
MakeHTTPBasicAuthenticationMW retrieve the token from the HTTP header 'Basic' and check if the password value match the allowed one.
MakeHTTPCorrelationIDMW retrieve the correlation ID from the HTTP header 'X-Correlation-ID'.
MakeHTTPOIDCTokenValidationMW retrieve the oidc token from the HTTP header 'Bearer' and check its validity for the Keycloak instance binded to the component.
NewEndpointAvailabilityChecker creates a new EndpointAvailabilityChecker.
ParseAndValidateOIDCToken ensures the OIDC token given in parameter is valid.
# Structs
TokenAudienceString is JWT token with an Audience field represented as a string.
TokenAudienceStringArray is JWT token and the custom fields present in OIDC Token provided by Keycloak.
# Interfaces
AdminConfigurationRetriever is an interface to get an admin configuration.
EndpointAvailabilityChecker interface.
IDRetriever is an interface to get an ID using an object's name.
KeycloakClient is the interface of the keycloak client.
TokenAudience interface.