@dtu-olp-2024/kafka-nocobase
Version:
A NocoBase plugin for Apache Kafka integration, supporting message publishing, topic management, and event-driven workflows. Built for the DTU GreenHope project.
11 lines (8 loc) • 350 B
JavaScript
const { SCRAM, DIGESTS } = require('./scram')
const scram256AuthenticatorProvider = sasl => ({ host, port, logger, saslAuthenticate }) => {
const scram = new SCRAM(sasl, host, port, logger, saslAuthenticate, DIGESTS.SHA256)
return {
authenticate: async () => await scram.authenticate(),
}
}
module.exports = scram256AuthenticatorProvider