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
Nikhil_KhetanNikhil_Khetan 

Salesforce Community Social Single Sign-On

Use Case 

We are trying to implement social single sign-on for community users. We donot want to create a new user in salesforce, this will only available only for existing community users.

We need user to authenticate using there Linkedin and then user should get a login screen to connect that Linkedin profile with it.
We know we can use registration handler, but what if the user email address in SF is different to his social email address?

One solution tried
We used salesforce existing user linking url generated by Sf https://CommunnityURL/services/auth/link/OrgID/LinkedIn
But this gives an error : We can’t log you in because of the following error. For more information, contact your Salesforce administrator. CSRF: No CSRF cookie
I am not sure whether this use case is possible or not.
Thank you.