Using a Configuration Parameter
- 1 Minute to read
- Print
- DarkLight
Using a Configuration Parameter
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Alternatively to the configuration file, use the configuration parameter as follows:
Set the JAAS-configuration by using one of the Kafka properties
Exampleprops.setProperty(SaslConfigs.SASL_JAAS_CONFIG, "org.apache.kafka.common.security.scram.ScramLoginModule required username=\"myuser\" password=\"password\";");
CODE
Substitute <username> and <password> by the credentials provided by Mapp.
The user and password are sensitive data, and therefore, we recommend not to keep them on the code but setting them up dynamically using environment variables.
Was this article helpful?