function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steven DonnellySteven Donnelly 

Prevent login from https://login.salesforce.com and OAUTH

We enabled a custom domain for our organization a couple of months ago and we are looking to shut off logins via https://login.salesforce.com. However when we enabled the feature Prevent login from https://login.salesforce.com under MyDomain our users were no longer able to login via SSO or through https://login.salesforce.com. Below was the response from the engineer when we did resolve the issue. 

"I've been reviewing your login history further and I see that you're logging in via a Third Party SSO. When navigating to <DOMAIN>.my.salesforce.com I'm directed to a Google Accounts login page which indicates that Google is set up as an auth provider. In that configuration, all of the URLs use login.salesforce.com which is why this error happened."

His response seems to indicate that Prevent login from https://login.salesforce.com is not compatible with OAUTH however the Salesforce documentation shown here (https://help.salesforce.com/articleView?id=faq_domain_name_sso.htm&type=5)
indicates that is should work fine with no additional changes. 

Has any one successfully used the "Prevent login from https://login.salesforce.com" button with an OAUTH configured enviroment?