SMTP and OAuth 2

System.Net.Mail does not support OAuth or OAuth2. However, you can use MailKit‘s (note: only supports OAuth2) SmtpClient to send messages as long as you have the user’s OAuth access token (MailKit does not have code that will fetch the OAuth token, but it can use it if you have it). The first thing you need … Read more

Kafka SASL zookeeper authentication

I found the issue by increasing the log level to DEBUG. Basically follow the steps below. I don’t use SSL but you will integrate it without any issue. Following are my configuration files: server.properties security.inter.broker.protocol=SASL_PLAINTEXT sasl.mechanism.inter.broker.protocol=PLAIN sasl.enabled.mechanisms=PLAIN authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer allow.everyone.if.no.acl.found=true auto.create.topics.enable=false broker.id=0 listeners=SASL_PLAINTEXT://localhost:9092 advertised.listeners=SASL_PLAINTEXT://localhost:9092 num.network.threads=3 num.io.threads=8 socket.send.buffer.bytes=102400 socket.receive.buffer.bytes=102400 socket.request.max.bytes=104857600 advertised.host.name=localhost num.partitions=1 num.recovery.threads.per.data.dir=1 log.flush.interval.messages=30000000 log.flush.interval.ms=1800000 log.retention.minutes=30 log.segment.bytes=1073741824 … Read more