At Synapse, we usually advise developers to store client id and client secret as an environment variable instead of plain text. Dedicated key management servers are preferred, but environment variables usually suffice.
Here is how to set up environment variables in Linux. It's very straight forward. Just go to the terminal and type the values.
Remember to use
export. Export makes the variable available to sub-processes.
You can check that everything was stored by doing the following:
When you need to retrieve these environment variables, you can do the following:
Pop open shell and type the following:
You should see the correct values printed.