I have a marketing site for my company and prospective clients will fill up a form to show interest. Now I need to put these people as contacts in my salesforce org. So want to create a rails job which will connect to salesforce and create contacts using REST API.
I am using the restforce gem. But I cannot use OAuth flow where I need to type in username and password (because this is a backend process to create contact).
How can I use JWT bearer token authentication with restforce? JWT provides a decoded token, but does not provide any refresh token.
Do I need to pass the decoded token as oauth_token to new restforce object?