# Packages
No description provided by the author
# Functions
GetCollectionIdAttribute provides an implementation of GetAttributesFromRequest.
NewCognitoRSAParser returns a CognitoRSAParser with correct RSA Public Signing Keys set.
NewDefaultConfig populates the config struct with default values suitable for local development.
NewFeatureFlaggedMiddleware returns a different Middleware implementation depending on the configured feature flag value Use this constructor when first adding authorisation as middleware so that it can be toggled off if required.
NewMiddlewareFromConfig creates a new instance of PermissionCheckMiddleware, instantiating the required dependencies from the given configuration values.
NewMiddlewareFromDependencies creates a new instance of PermissionCheckMiddleware, using injected dependencies.
NewNoopMiddleware creates a new instance of NoopMiddleware.
# Constants
No description provided by the author
# Structs
Config contains the required configuration / environment variables for the typical authorisation setup.
NoopMiddleware provides a middleware implementation that does not do any permissions checking.
PermissionCheckMiddleware is used to wrap HTTP handlers with JWT token based authorisation.
# Interfaces
JWTParser takes a raw JWT token string, verifying it and extracting the required entity data.
Middleware represents the high level interface for authorisation middleware.
PermissionsChecker checks if the given entity data matches the given permission.
ZebedeeClient validates old world token.
# Type aliases
GetAttributesFromRequest defines the func that retrieves and returns attributes from the request.