--- title: "Using a Configuration File" slug: "using-a-configuration-file" updated: 2024-03-19T11:21:45Z published: 2024-03-19T11:21:45Z canonical: "docs.mapp.com/using-a-configuration-file" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Using a Configuration File The file contains the credentials and will be used when connecting to Kafka. > [!CAUTION] > This is a sensitive file so please set proper file permissions for the configuration file, as it contains the user and the password that will be used when connecting to Mapp's Streaming endpoint. 1. Create a configuration file as follows (typically a `.conf` file) and include the following in your file: ```plaintext KafkaClient {   org.apache.kafka.common.security.scram.ScramLoginModule required   username="myuser"   password="mypassword"; }; ``` 2. Substitute and by credentials provided by Mapp. 3. Then pass the following flag to the JVM (Java Virtual Machine) during the execution of your software. ```plaintext -Djava.security.auth.login.config=/path/to/my/jaas.conf ``` 4. Substitute the path to your `jaas.conf`-file.