abstract class Crabbit::SaslAuthenticator

Overview

Extensibility point for SASL authentication.

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

Direct Known Subclasses

Defined in:

crabbit/configuration.cr

Instance Method Summary

Instance Method Detail

def 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.


[View source]
abstract def initial_response : Bytes #

Returns the initial opaque SASL response.


[View source]
abstract def mechanism : String #

Returns the SASL mechanism name sent to RabbitMQ.


[View source]