"Houston we have a problem. An unexpected error happened, you will be redirected back to the login page in 10 seconds. Error: invalid_request - ip restricted" may appear when you attempt to log into the Skedulo web app.
What is happening?
As part of our authentication process, we have to query your Salesforce data to make sure you can actually log in (which means we will be making requests on your behalf to Salesforce). If you see this error it means your Salesforce user profile has an IP address restriction which doesn't include our Skedulo services or our authentication provider (Auth0).
How to Fix the Problem
The most likely cause is that you have the session setting of "Lock sessions to the domain in which they were first used" checked. Uncheck this setting and try again. If this does not solve your issue you may have to add IP addresses in the user's profile (see "Troubleshooting Steps).
Figure 1. Session settings in Salesforce CRM.
Administrators who have the required permissions can view and edit the login IP addresses that have been defined in the user's profile.
To view the user's login IP ranges in Salesforce, using Salesforce Lightning perform the following:
- Go to Setup.
- Select Users > Users.
- Edit the user profile having difficulties.
- Locate "Profile" from the user settings and click on it (e.g., Standard User).
- From the profile (in the section named "System"), select "Login IP Ranges."
Your user's login IP address ranges (if any) are listed. Click "Add IP Ranges" to add more addresses (or click "Del" to remove them).
Figure 2. A user's profile in Salesforce.
Figure 3. Accessing the login IP ranges in a user's profile.
If you have any doubts about which IP addresses are causing the login problems, check out the login history logs provided in Salesforce. The problem addresses should be recorded in that log.
Figure 4. Accessing the login history logs in Salesforce.