The environment instance to handle the request.
The instance of the secured error handler.
Maybe an authorization instance.
Provides an extract
method on an Either
which contains the same types.
Provides an extract
method on an Either
which contains the same types.
Creates a secured action handler builder with an authorization in place.
Creates a secured action handler builder with an authorization in place.
An authorization object that checks if the user is authorized to invoke the action.
A secured action handler builder with an authorization in place.
Creates a secured action handler builder with a new error handler in place.
Creates a secured action handler builder with a new error handler in place.
An error handler instance.
A secured action handler builder with a new error handler in place.
Constructs a request handler with the content of the given request.
Constructs a request handler with the content of the given request.
The type of the request body.
The type of the data included in the handler result.
The current request.
The block of code to invoke.
A handler result.
Constructs a request handler with default content.
Constructs a request handler with default content.
The type of the data included in the handler result.
The block of code to invoke.
The current request.
A handler result.
Maybe an authorization instance.
The environment instance to handle the request.
The environment instance to handle the request.
The instance of the secured error handler.
The execution context to handle the asynchronous operations.
The execution context to handle the asynchronous operations.
Handles the authentication of an identity.
Handles the authentication of an identity.
As first it checks for authenticators in requests, then it tries to authenticate against a request provider. This method marks the returned authenticators by returning already initialized authenticators on the left and new authenticators on the right. All new authenticators must be initialized later in the flow, with the result returned from the invoked block.
The type of the request body.
The current request.
A tuple which consists of (maybe the existing authenticator on the left or a new authenticator on the right -> maybe the identity).
Handles a block for an authenticator.
Handles a block for an authenticator.
Invokes the block with the authenticator and handles the result. See handleInitializedAuthenticator
and
handleUninitializedAuthenticator
methods too see how the different authenticator types will be handled.
The type of the data included in the handler result.
An already initialized authenticator on the left and a new authenticator on the right.
The block to handle with the authenticator.
The current request header.
A handler result.
Invokes the block.
Invokes the block.
The type of the request body.
The type of the data included in the handler result.
The block of code to invoke.
The current request.
A handler result.
Request handler builder implementation to provide the foundation for secured request handlers.
The type of the environment.
The environment instance to handle the request.
The instance of the secured error handler.
Maybe an authorization instance.