Open rishabhsinhaa opened 1 year ago
Hi. I run it like this:
make clean build plugin.oidc-provider && build/kafka-proxy server --sasl-enable --sasl-plugin-enable --sasl-plugin-mechanism "OAUTHBEARER" --sasl-plugin-command build/oidc-provider --sasl-plugin-param "--credentials-file=/path/to/service-account.json" --bootstrap-server-mapping "kafka:9092,0.0.0.0:19092"
And service-account.json:
{
"grant_type": "password",
"client_id": "kafka",
"client_secret": "kafka-secret",
"username": "bob",
"password": "bob-password",
"token_url": "http://keycloak:8080/auth/realms/kafka-authz/protocol/openid-connect/token",
"scopes": ["openid", "offline_access"]
}
Can anyone please provide an example for using oidc-provider as the auth-gateway using the kafka-proxy