Skip to content

Send kafka messages with OAuthbearer security - Keycloak as a IAM

Notifications You must be signed in to change notification settings

dumindarw/kafka-oauthbearer-keycloak-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3e303ac · Dec 6, 2020

History

1 Commit
Dec 6, 2020
Dec 6, 2020
Dec 6, 2020
Dec 6, 2020
Dec 6, 2020
Dec 6, 2020

Repository files navigation

Install custom-oauthbearer (https://github.com/dumindarw/kafka-oauthbearer-keycloak) jar file (kafka-oauth-1.0.0.jar) locally and add it to your pom file first

mvn install:install-file -Dfile=/home/duminda/IdeaProjects/kafka-oauthbearer-keycloak/kafka-oauth-1.0.0.jar -DartifactId=kafka-oauth -Dversion=1.0.0 -DgroupId=drw -Dpackaging=jar

Run boot server

View auto generating weather data:

docker exec -it kafka-oauthbearer-keycloak_kafka_1 bin/kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic weather --from-beginning --consumer.config=config/consumer.properties --consumer-property group.id=group_id

or use /weather endpoint

Payload :

{ "stationId": 1 , "temperature": 10 }

About

Send kafka messages with OAuthbearer security - Keycloak as a IAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages