class

Crabbit::SaslAuthenticator

Inherits Reference < Object

Extensibility point for SASL authentication.

Implement #mechanism and #initial_response; override #challenge only for challenge-response mechanisms. Pass the implementation as Configuration#sasl_authenticator.

Instance methods

challenge(data : Bytes) : Bytes

Handles a server challenge and returns the next opaque response.

The base implementation raises AuthenticationError because PLAIN and EXTERNAL do not support challenges.

Source
initial_response

Returns the initial opaque SASL response.

Source
mechanism

Returns the SASL mechanism name sent to RabbitMQ.

Source