Unable to login through social login in AEM 6.2 - facebook

I have configured social login in AEM as given in https://docs.adobe.com/docs/en/aem/6-1/administer/communities/social-login.html. I'm using Geometrix-outdoor component to login. The page is http://localhost:4502/content/geometrixx-outdoors/en.html [on top right corner we have login].
All the configurations are good. When I click login, the pop up for facebook login comes (OAuth login succeeds). When the call back happens, the OAuth Handler is not able to find the class com/day/cq/personalization/ProfileUtil in 6.2. In 6.1 this functionality works fine.
Below is the log:
java.lang.NoClassDefFoundError: com/day/cq/personalization/ProfileUtil
at com.adobe.cq.social.connect.oauth.impl.FacebookProviderImpl.getCurrentUser(FacebookProviderImpl.java:368)
at com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet.updateUserDataAndRedirect(OAuthProfileImportServlet.java:130)
at com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet.requestAccessToken(OAuthProfileImportServlet.java:115)
at com.adobe.granite.auth.oauth.impl.servlet.OAuthProfileImportServlet.doGet(OAuthProfileImportServlet.java:82)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:269)
at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:140)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:345)
at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:376)
at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:546)
at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)
at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)
It is helpful to identify the root cause and rectify. Thank you

In AEM 6.2, com.day.cq.wcm.foundation.profile.ProfileUtil is deprecated. Please
Use com.day.cq.personalization.ProfileUtil instead.

Social login cannot be used on author nodes. It is only valid on publish nodes because it creates community users. Community users do not exist on author nodes.
I wish the error message were more clear...

Related

Facebook messenger checkbox plugin is hidden (already checked other answers)

I have the same problem like asked here: Facebook messenger checkbox plugin is hidden
I tried the implementation of the Facebook Checkbox Plugin according to Facebooks documentation but it won't show on my VM in my Company.
The Facebook SDK Implementation works fine, I tried the "Share" and "Like"-Button, which show up correct.
I have a Facbook Page which has public access and a Messenger APP in DEV-mode. The "Send-API" from Facebook works correct too: I am able to send message to myself as administrator from my Webpage on my development VM.
Following Steps are done: use a random user_ref on every request, set my page on the whitelist, use "https", visit my page FB-loggedIN and FB-loggedOut
But the result ends in Markup and Log-Infos like this screen:
See FF DeveloperTools Markup Screenshot for current state
According to this I visited a page given as origin where the Plugin should work (see first link in my question) - but there the plugins' HTML is the same like mine.
So is there a general problem on Facebooks' site or is there quite more necessary, to get this plugin running? Could it be a problem with self-signed certificate on my VM?
At the moment I don't want to notify or login any user. All I want is that the checkbox is shown.
Pherhaps anyone has an idea or the same experiences :)
Additional Info: the console shows following message
fb:messenger_checkbox failed to resize in 45s
after some fiddling we found out that a registered webhook is required (even if you dont consume the events) to make the messenger checkbox plugin render properly.

Closed User Group doesn't redirect to given Login page

I am giving a page a closed user group. However it always redirects to /content/geometrixx/en/toolbar/account/login.html NOT the login page i've given it. Has anyone experienced this? The cq:cugLoginPage in the jcr is set to the correct page. Cheers
Unfortunately it is know AEM bug. And official workaround is to customize login page and depends on your situation make redirect to page that you need.
On the helpx.adobe.com you can find other know bugs and workarounds for them.
Note: there is an official hotfix-11598 for AEM 6.2 which is fixing this issue.

Facebook Login Integration in AEM/CQ

I have come across an issue while integrating Facebook login with AEM.
I took reference from below link
https://docs.adobe.com/docs/en/cq/5-6-1/administering/social_communities/social_connect.html
Although everything is working fine but on welcome page it is not displaying the logged in user name the way it is working for Geometrixx Outdoors website.
Instead it is displaiying the ID only.
Any suggestions who have already worked on this integration? :)
When your user logs in from facebook,it will exist as a user in /home/users/facebook under the group you have specified.If it is not there,you need to do it.Dont forget to check the about me part shown in figure ,so that user can save the info with the help of this.User in your aem will fetch only those info which you check here,
And in the welcome page,you need to fetch the user-info from that group and show it on your welcome page,it will not be on the fly.You need to do it like geomatrix.
I have done work on this integration,If you need further help,feel free to ask me.

Integrate GWT with Spring Security with custom login page

I have followed
http://krams915.blogspot.hk/2011/01/spring-and-gwt-security-via-spring.html
to build a GWT app with spring security with custom login page.
However, How can I handle the followings things?
1) If the user is not logged in, direct the user to login page, but not showing the HTTP ERROR page.
2) after the user is logged in, direct the user to front page or previous page but not /j_spring_security_check
I have tried replacing /j_spring_security_check in the loginpage.jsp to the /XXXEntry.html?gwt.codesvr=127.0.0.1:9997. I can successfully redirect back to the GWT app, but it stills said that Authentication required.
Could anybody help? Better with code examples. Thanks a lot!!
I have found another solutions for GWT and Spring Security integration:
http://www.site.lalitbhatt.com/spring-security-gwt-integration
this article make a login.html rather that jsp. Very easy to understand and implement.
Everthing works fine now.
Updated: The link moved to http://tech.lalitbhatt.net/2014/08/spring-security-gwt-integration.html

asp.net webforms - facebook server side authentication on a page tab

I'm struggling for about 2 days with authenticating a user from the server side.
Using asp.net 4, c# web forms and starting to use the C# SDK, building an app for page tab.
I need to authenticate a user with the Oauth diag.
If I use Response.Redirect, I get a blank screen on the tab.
according to http://developers.facebook.com/docs/authentication/pagetab/
I need to send a JS command in order to change window.top.location but how do I do this?
my login url:
https://www.facebook.com/dialog/oauth?client_id=482264391791260&redirect_uri=http://www.facebook.com/pages/null/153715871344670/?sk=app_482264391791260&response_type=code&display=popup&scope=email
Thanks!
I need to send a JS command in order to change window.top.location but how do I do this?
The section entitled 2a. Redirect to OAuth Dialog upon page load on the very same page you mentioned has an example of doing exactly that …
So what exactly is your problem in getting it done?