abstract class
Crabbit::SaslAuthenticator
- Crabbit::SaslAuthenticator
- Reference
- Object
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.crInstance Method Summary
-
#challenge(data : Bytes) : Bytes
Handles a server challenge and returns the next opaque response.
-
#initial_response : Bytes
Returns the initial opaque SASL response.
-
#mechanism : String
Returns the SASL mechanism name sent to RabbitMQ.
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.