I'm trying to contact the salesforce api from my rails app. I use omniauth-salesforce gem for oauth.
As mentioned in the REST API documentation, I have setup a remote access provider in "Setup". This asks me for a static callback URL. But the issue with my system, each user of my app gets a different domain. So, I cannot set a constant callback url like "user1.demoapp.com". I will have basically 100 domains for 100 users. So, is it possible to override this callback URL from my rails app? Please let me know.