I'm trying to connect a rails application to Salesforce using the restforce gem.
The problem is similar to this question: Using Restforce gem with SalesForce API and Oauth 2.0
But I'm asking again because there was no good answer there, and I'm not using the Oauth method.
After login to salesforce and creating a new connected app, I get a "Consumer Key" and "Consumer Secret", but the restforce gem requires a few other credentials:
client = Restforce.new(username: 'foo',
password: 'bar',
security_token: 'security token',
client_id: 'client_id',
client_secret: 'client_secret',
api_version: '41.0')
I assume the "Consumer Key" is equivalent to "client_id" and the "Consumer Secret" is equivalent to "client_secret", correct?
(Assuming also that "username" and "password" are my login credentials)
But where do I find the other credentials in Salesforce, i. e., the "security_token" and "api_version"?
And how do I configure these in my Rails app?
I've seen indications to put them in an .env file, but where is the .env file being loaded inside Rails? How do I configure the environment variables to be loaded?
(Rails newbie)