forcedotcom / OrgMonitor

BSD 3-Clause "New" or "Revised" License
41 stars 26 forks source link

SAML Variables #6

Open paddybutler opened 5 years ago

paddybutler commented 5 years ago

Does anyone have more detail on what should be set in these? I have deployed the application on heroku and when I open the app and try to access a Salesforce org via SSO, I get the following error:

{ "success": false, "error": "Cannot read property 'findDoc' of undefined" }

Currently I have the following values SAML_CALLBACK - https://xxxxxxxxx.herokuapp.com/login/callback (I use the heroku app name) SAML_CERT - The contents of the cert front salesforce minus the start and end lines SAML_ENTRY_POINT - https://xxxxxxx.my.salesforce.com/idp/endpoint/HttpRedirect (I use my Salesforce domain) SAML_ISSUER - the heroku app namme

alansf commented 5 years ago

I am also having this issue. Did you get it to work?

{ "success": false, "error": "Cannot read property 'findDoc' of undefined" }

paddybutler commented 5 years ago

Yes I get the same

alansf commented 5 years ago

@lekkimworld any idea?

tejeirodelrio commented 4 years ago

Hi,

I've had the same issue and it was due to the app not connecting to MongoDB. I'm using Heroku and mLab MongoDB add-on. I had to go to this addon admin page and click on the top-right corner, on the user (heroku_xxxxx), and then, at the bottom of the page, I had to enable the Data API access (from disabled to enabled). I restarted the dynos and I browsed to the https://.herokuapp.com/setup . It started working after enabling the Data API access.

Hope you have the same issue as me and can solve it quickly.

Regards, Manuel