View Source KafkaMskAuth.SignedPayloadGenerator behaviour (kafka_msk_auth v0.1.0)

AwsSignatureLib module is a facade behavior/implementation for Erlang's aws_signature module Ref: https://github.com/kafka4beam/kafka_protocol Contains wrapper functions for methods in aws_signature module Purpose: Creating this as a behavior helps us mock the payload building and signing calls made

Summary

Functions

Builds AWS4 signed AWS_MSK_IAM payload needed for making SASL authentication request with broker

Callbacks

Link to this callback

get_signed_payload(atom, binary, t, map)

View Source
@callback get_signed_payload(atom(), binary(), DateTime.t(), map()) :: binary()

Functions

Link to this function

get_signed_payload(mechanism, host, now, config)

View Source
@spec get_signed_payload(atom(), binary(), DateTime.t(), map()) :: binary()

Builds AWS4 signed AWS_MSK_IAM payload needed for making SASL authentication request with broker

Reference: https://github.com/aws-beam/aws_signature

Returns signed payload in bytes