Skip to content

sample: Use SASL/OAUTHBEARER for Event Streams authentication - #3646

Open
edoardocomar wants to merge 2 commits into
mainfrom
ec/evenstreams-gen1-sasl-oauth-sample
Open

sample: Use SASL/OAUTHBEARER for Event Streams authentication#3646
edoardocomar wants to merge 2 commits into
mainfrom
ec/evenstreams-gen1-sasl-oauth-sample

Conversation

@edoardocomar

Copy link
Copy Markdown
Member

Sample code demonstrating how to use SASL/OAUTHBEARER for authentication with IBM Event Streams.

Sample code demonstrating how to use SASL/OAUTHBEARER
for authentication with IBM Event Streams.

Signed-off-by: Edoardo Comar <ecomar@uk.ibm.com>
@edoardocomar
edoardocomar requested a review from dnwe June 29, 2026 11:57
use a single connection to just one broker
add more logging

Signed-off-by: Edoardo Comar <ecomar@uk.ibm.com>
@edoardocomar
edoardocomar force-pushed the ec/evenstreams-gen1-sasl-oauth-sample branch from ea8184e to f5c5e9f Compare June 30, 2026 08:20
@edoardocomar

Copy link
Copy Markdown
Member Author

sample log of the reauthentication demo
log.txt

It's interesting that on the first reauth the client got a Session expiration in 161338 ms — ~2m41s, not 1 hour.
Kafka set the session lifetime to min(connections.max.reauth.ms, time until the presented token expires).
As the client re-authenticated with a token that only had ~1m45s (+60s window) of life left, the broker capped the session to that remaining life.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant