Abstract
Optional
overrides: SubscriptionConfigReadonly
messageReadonly
middlewareOptional
Readonly
overridesProtected
getGet the environment info that was extracted through the authenticationMiddleware
the RabbitMQ message that contains a JWT token
Protected
getGet the subject that was extracted through the authenticationMiddleware
the RabbitMQ message that contains a JWT token
Optional
mapAbstract
onMain message handling function.
non-binary message payload (usually a json)
message with all related message metadata, including message envelope
acknowledgment or rejection callback that can be called to forcefully complete the message processing.
Optional
onFunction that will be called after the last retry attempt has failed. Useful for handling errors in an explicit way.
non-binary message payload (usually a json)
message with all related message metadata, including message envelope
error object that caused message processing to repeatedly fail
Generated using TypeDoc
Guard a message handler by getting and verifying the JWT token. It changes the
MessageInfo
parameter toAuthenticatedManagementSubjectMessageInfo
which contains the JWT token subject. In addition it checks that the subjects permission match the required ones. This class is only intended to be implemented by Axinom Managed Services.