You need to sign in to do that
Don't have an account?
ToriSansom
Set up Social Sign-on in Community - Trailhead Challege
I am unable to move forward with the Module ''Set up Social Sign-on Unit'' (https://trailhead.salesforce.com/identity/identity_external/identity_external_social) in Trailhead as the challenge is to set up a Google Social Sign-on, however it seems that the Registration Handler provided is for Facebook rather than Google. Is someone able to provide some support /suggestions on this so I can move forward please?
Registration Handler provided: https://github.com/salesforceidentity/IdentityTrail-Module3 and use Module3RegistrationHandler.cls
Check if you can log into the community using Google sign on the login page.
And also please consider this point in the same trailhead unit.
From Setup, enter All Communities in the Quick Find box, then select All Communities and click Manage next to the Customers community.
Select Administration, then Login & Registration and you see that Google is now an option.
Select Google and click Save.
To confirm your change, return to your private (incognito) browser and reload the login page. Check that the Google icon appears on the login page.
Hope this helps you!
Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Best Regards,
Nagendra.P
https://raw.githubusercontent.com/salesforceidentity/IdentityTrail-Module3/master/Module3RegistrationHandler.cls
Issue was related to Github, we were downloading an HTML of the page itself :) #bigfailgithub
REGISTRATION_HANDLER_ERROR: List has no rows for assignment to SObject
Can't figure out what I'm doing wrong but whether I try to login through Google on the Customers or Partners portal, I get the same error. Anyone else come across this & find a solution?
same issue for me: ... does someone already finished this challenge in trailhead ?... if yes please help :-)
still having this error with google connexion :
We can’t log you in because of the following error.
REGISTRATION_HANDLER_ERROR: List has no rows for assignment to SObject
I propose a corrected class which works for a lot of language. Try to replace the class "Module3RegistrationHandler" by my following class :
First Thanks for your answer.
Unfortunately I'm still having an issue... but not the same now :-)
it's strange it says :
ERROR_CREATING_USER: portal account owner must have a role
for information, all other modules in this trails have been done correcly avant self register ... I don't understand this error
if you have another tips => Thx by advance... and sorry for my English
Hello,
No problem for your english, I'm French too without a good english level ;)
Firstly, I think it's important to close this question and don't mix many questions in one thread.
Secondly, if I understand correctly your new error message, I think the owner of the customer account "Portal" have no role. So check inside the profil of this account owner if it has role. If no add a role and try again.
I have this message: We can’t log you in because of the following error.
NO_ACCESS: Unable to find a user.
Can someone help me?
Thank you
Jessica
This module should get completely reworked by Salesforce.
This is a mess and broken for now.
It seems that the problem is in this line: Executing the SOQL, it returns 0 records.
Change the line with solved the problem for me.
Hope it helps.
Happy Trailheading :)
1. Make sure you enable facebook and google login for the partner community
2. login to https://yourcompanylogogoeshere.naXX.force.com/partners/login/
3. success!
My Facebook login works just fine. However, my Google login always result in the following error:
We can’t log you in because of the following error.
Invalid_Login: Login asguest user is not allowed
https://www.screencast.com/t/MbjAWGNbCFWm
I followed all recommendations in the topic, allowed all possible guest access and debugged Module3RegistrationHandler (it has no errors). No clues on what to do next. Please help.
Thank you Valerio Verde.
David SOBCZAK.
This issue is caused if your admin login email id is the same as the gmail id you are trying to sign on with.
For example, if your admin email address is xyz@gmail.com , and you are trying to sign on in the community using xyz@gmail.com, it gives this error.
Create a new gmail id abc@gmail.com and try to log in. It will complete the challenge.
Bogdan Protsenko 23
Your solution worked for me! Thank you!
uhhh....I am very new to this and hoping someone can please help! Sadly, I am not a developer and am struggling to even move past the first part of this Social Sign On unit, where we are to setup Facebook as an Auth provider under the "customers" community.
I did all the steps carefully in the project up until now, (including all prior units, I believe). I have double and triple checked my work but for some reason cannot get past the final hurdle of being able to use Facebook to login to the community. When I try to login via the TestOnly URL, the window repeatedly returns this following (highly ambiguous) error message (so far I have not been able to Google my way out of this, either):
Problem Logging In: We can’t log you in because of an authentication error. (That's the whole message. It says absolutely nothing else) I'm not sure if there is a problem with the Apex code (which I copied and pasted the Github link in the Trailhead, like everyone else), an issue with my Facebook account, or some other configuration misstep I made while setting up the Facebook access provider, changing the registration handler, or in implementing the "customers" community itself, or some other incredibly simple part of the process I am going to look back and kick myself for later.
Another thing is I noticed my XML code returned at the end of the first, "Creating and Authentication Provider" section, where I pasted my Test Only URL into the Browser:
Test-Only Initialization URL https://login.salesforce.com/services/auth/test/00D1U000000zQBbUAM/Facebook
looked dubiously inconsistent with what I saw in Trailhead's demo XML (by that I mean the names are obviously differrent b/c it's me, but the XML I got returned to me when using the TEST ONLY URL, like it says to to in the Trailhead, as oppsoed to any of the other URLs available under Auth. Providers did not include the "link" to the Facebook site, or a "locale." Instead of:
<?xml version="1.0" encoding encoding="UTF-8"?><user><full_name>Andrew Crane</full_name><provider>Facebook</provider>
<org_id>15-character org ID</org_id>
<link>https://www.facebook.com/app_scoped_user_id/my 16 digit numerical id/</link><last_name>Actual Last Name</last_name>
<id>16-digit numerical ID</id>
<portal_id>000000000000000</portal_id>
<locale>en_US/</locale><first_name>Andrew</first_name>
<email>myemailaddress@gmail.com</email></user>
The XML that came back was:
nothing up top, then just:
<user><full_name>Andrew Crane</full_name><provider>Facebook</provider>
<org_id>15-character org ID</org_id>
<last_name>Actual Last Name</last_name>
<id>16-digit numerical ID</id>
<portal_id>000000000000000</portal_id>
<first_name>Andrew</first_name>
<email>myemailaddress@gmail.com</email></user>
Maybe that's a clue...??
I have also tried every configuration of regular/incognito window I can, as well as copying and pasting the (Apex?) code suggested above to modify my Apex Class and that doesn't work either- although I kind of expected that- since that code was I think relevant to the Google for Partners issue, not the Facebook for customers issue.
Please help a poor guy out: has anyone else encountered this issue, or would someone be kind enough to suggest a fix? Maybe this is an inneficient way to go about this, but I feel I should not move on to the actual challenge at the end without first completing the basics, so this is starting to get really frustrating. Again, I really apologize in advance, but being so new to all of this and spectacularly unfamiliar with Apex, any technical answers relying on a wealth of prior knowledge of the language, or coding more generally will most likely fall on eyes currently too blind to comprehend it but any help at this point would be greatly appreciated! Thanks!
Still trying to find a solution to "Problem Logging In: We can’t log you in because of an authentication error."
It seems that the token sent by google has changed, so you have to adapt the apex code to get the lastname.
In the handler code, you have to replace "data.lastname" by "data.fullName".
in fact as we fulill the unit, we set our profil to customers, needless to say that for the challenge we have to switch to partners.
So from users in setup, next to ur name click edit, and switch profile from "customers " to " partners"
Thanks David !!