@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.
20 lines (17 loc) • 493 B
JavaScript
const Encoder = require('../../../encoder')
const { SaslAuthenticate: apiKey } = require('../../apiKeys')
/**
* SaslAuthenticate Request (Version: 0) => sasl_auth_bytes
* sasl_auth_bytes => BYTES
*/
/**
* @param {Buffer} authBytes - SASL authentication bytes from client as defined by the SASL mechanism
*/
module.exports = ({ authBytes }) => ({
apiKey,
apiVersion: 0,
apiName: 'SaslAuthenticate',
encode: async () => {
return new Encoder().writeBuffer(authBytes)
},
})