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
Er. Puneet GoelEr. Puneet Goel 

SSO for every Salesforce User

I am creating an Asp.Net web application in which i am using oAuth 2 to authenticate user for salesforce SSO(Single Sign On) and able to fetch user data. But i want to creata a link, which on click can redirect user to thier respective "Salesforce" home page weather its a Domain based user or not. But i am not able to do this.
There is way using IDP bindings, but that will not work in my case as on my website any anonymus user can come and login with salesforce username and password. So how can i do that ?

All suggestions are welcomed.
OAuth with SSO only works with the custom domain configured. You can still make it work with your current setup. On the Salesforce login page a link is shown "Log in to Custom domain". Click that it will ask you to enter the custom domain and automatically redirect you to respective SSO authentication page.