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
Ravi sastriRavi sastri 

Users need to login using External Authentication Provider

I have a requirement where users need to log in to salesforce using external authentication provider. The configuration in Open-id authentication. I have created the connection in Auth.Providers along with all the required key, id, url and tokens. Salesforce has automatically created a registration handler. Using Test-Only Initialization URL, I have tested the connection and I have recieved the XML which states that the connection is working fine

Now, I need the users to log in using that provider and should be redirected to Home Page of Salesforce. How to do that? Please help.

Thank you in advance.
Sastri
SandhyaSandhya (Salesforce Developers) 
Hi,

If you don’t add startURL, Salesforce sends the user to either /home/home.jsp (for a portal or standard application) or the default sites page (for a site) after authentication completes.

Refer below help articles.

https://help.salesforce.com/articleView?id=sso_authentication_providers.htm&type=5
 
https://help.salesforce.com/articleView?id=sso_provider_addl_params_start.htm&type=5#sso_provider_addl_params_start
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya