# Functions
EntryUrl checks whether there is a certain authentication entry URL the user should be redirected to, e.g.
GenerateRelativeUrl generates a relative URL for an endpoint.
GetContextLogger retrieves a reference to the tagged logger of the current requests context.
GetContextUser retrieves a reference to the currently authenticated user from the requests context, which is set after successful authentication.
GetLoader retrieves the appropriate loader for the given domain or falls back to the default loader.
No description provided by the author
No description provided by the author
MwAbortOptionsRequest aborts OPTIONS requests, as they should not get executed in the backend.
MwInitializeRequest initializes a request by initializing a request-specific tagged logger, logging an initial message, preparing a request-context bound storage for common data and logging a final message after the request has been handled.
MwJwtAuthentication is a middleware validating every request for valid authentication details.
No description provided by the author
MwSetCorsHeaders adds CORS-relevant response headers to every response.
MwSetSecurityHeaders adds security-relevant response headers to every response.
NewAuthenticatorCredentials generates a new authenticator with the user domains it is responsible for.
NewAuthenticatorDevelopment generates a new authenticator with the user domains it is responsible for.
NewAuthenticatorOauth generates a new authenticator with the user domains it is responsible for.
NewLoaderVoid generates a new loader with the user domains it is responsible for.
OwnerOrAdmin determines whether the user has sufficient rights to edit a group's elements (e.g.
RegisterApiEndpoint registers a new route, which requires authentication.
RegisterApiEndpointAdmin registers a new route, which should not require authentication.
RegisterApiEndpointNoAuth registers a new route, which requires admin privileges.
Respond responds with 200 OK, the base response data and optional given response body data.
RespondAuthError returns a 401 UNAUTHORIZED http error code and should be used whenever there is an authentication or authorization issue.
RespondInternalError returns a 400 BAD REQUEST http error code and should be used whenever there is an internal issue.
RespondTemporaryError returns a 200 OK status code but an error flag together with an error message.
RpcClient exposes the RPC client to external packages.
Run starts the gin web server.
SetContextStorage allows to set the context storage.
Shutdown terminates the application context, which causes associated components to gracefully shut down.
UnsetContextUser removes the user from the context store for further processing.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContextStorage contains data relevant throughout the lifetime of a request.
Jwt represents a JWT token and it's attributes, used for authentication.
No description provided by the author
No description provided by the author