Feature #2031

Feature #1302: Activity Planning

Feature #1319: Liferay Migration from 6.0 to 6.2

Provide a Social login portlet for liferay

Added by Panagiota Koltsida over 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:Jan 21, 2016
Priority:UrgentDue date:Mar 31, 2016
Assignee:Michalis Nikolopoulos% Done:

100%

Category:-
Sprint:Liferay migration to 6.2 Version
Milestones:
Duration: 51

Description

Provide a social login portlet for liferay
The portlet should offer different ways to login based on the active login hooks (facebook, linkedin) and also a normal (username / password) login.

IMG_2706.jpg (84.5 KB) Massimiliano Assante, Mar 31, 2016 11:34 AM

Screen Shot 2016-07-18 at 17.19.50.png (19.2 KB) Massimiliano Assante, Jul 18, 2016 05:20 PM

324
576

Related issues

Related to gCube - Feature #2029: Liferay portal Google login hook Closed Jan 21, 2016
Related to gCube - Feature #2027: Liferay portal Linkedin login hook Closed Jan 21, 2016
Related to gCube - Feature #2030: Liferay portal Microsoft login hook Closed Jan 21, 2016 Jul 22, 2016
Related to gCube - Feature #3972: Allow users to login to portal with different e-mail addr... Closed May 10, 2016
Related to gCube - Feature #3974: Create a portlet where users can declare their additional... Closed May 10, 2016

History

#1 Updated by Massimiliano Assante over 3 years ago

  • Related to Feature #2029: Liferay portal Google login hook added

#2 Updated by Massimiliano Assante over 3 years ago

  • Related to Feature #2027: Liferay portal Linkedin login hook added

#3 Updated by Massimiliano Assante over 3 years ago

  • Related to Feature #2030: Liferay portal Microsoft login hook added

#4 Updated by Massimiliano Assante over 3 years ago

  • Due date set to Mar 04, 2016

I'm changing the sprint

#5 Updated by Massimiliano Assante over 3 years ago

I'm changing the sprint and the due date to March 04 (in which hopefully we will have the new portal)

#6 Updated by Massimiliano Assante over 3 years ago

  • Related to Feature #1319: Liferay Migration from 6.0 to 6.2 added

#7 Updated by Massimiliano Assante over 3 years ago

  • Related to deleted (Feature #1319: Liferay Migration from 6.0 to 6.2)

#8 Updated by Massimiliano Assante over 3 years ago

  • Parent task set to #1319
  • Due date changed from Mar 04, 2016 to Mar 31, 2016

#9 Updated by Michalis Nikolopoulos over 3 years ago

  • % Done changed from 0 to 30

Google login hook is ready.

#10 Updated by Massimiliano Assante over 3 years ago

  • Priority changed from Normal to High
  • Status changed from New to In Progress

@mnikolopoulos@cite.gr can you provide us with the link to the Google login hook? In order to test it for the moment the war and instructions would be sufficient, later (ma not so later) we would need the following:

  • Google login hook ETICS configuration (you should create a new component under the portal subsystem)
  • Google login hook artifact deployed on gCube Nexus Maven repository

#11 Updated by Michalis Nikolopoulos over 3 years ago

Hi, Here is the link to the war http://maven.research-infrastructures.eu/nexus/service/local/repositories/gcube-snapshots/content/gr/cite/google/Google-login-hook/1.0.0-SNAPSHOT/Google-login-hook-1.0.0-20160315.165359-3.war , all you need to do is provide google client id and google client secret either at the portal.properties file or after you have deployed the war(it won't work without the credentials), you login as administrator, navigate to control panel, then configuration in the right sidebar you click on the authentication, finally you click on the Google tab and you fill up the inputs with the credentials from google. Any feedback would be appreciated.

#12 Updated by Massimiliano Assante over 3 years ago

thanks Michalis I'll try to look at this this afternoon and provide you feedback

#13 Updated by George Kakaletris over 3 years ago

My two cents here: @mnikolopoulos@cite.gr, the other adapters you have been implementing are also operational, so why don't we check also eduroam, through which we would immediately get certified accounts for a large number of researchers. Also f/b, live, twitter and other login options could be offered to BB. Any implication with those ?

#15 Updated by Panagiota Koltsida over 3 years ago

@gkakas@di.uoa.gr and @pasquale.pagano@isti.cnr.it the plan is to release and make available all the available adapters. We start with google and will continue with Shibboleth (required for eduroam), facebook, live, twitter and yahoo.
The social login portlet (the ticket is about) will be the portlet that will offer an attractive and "standard" UI for logging in with any of the available options (together with the standard username/password one). The login hooks can be already deployed but it is up to the portal's administrator if they will be enabled or not

#16 Updated by Michalis Nikolopoulos over 3 years ago

I assume we talk about eduGAIN and not eduroam, correct me if i am wrong. @p.koltsida@di.uoa.gr covered the rest.

#17 Updated by Massimiliano Assante over 3 years ago

The Google Login hook was integrated successfully on the Liferay 6.2 Dev Instance @CNR

http://dev2.d4science.org:8080/

http://dev2.d4science.org:8080/c/portal/google_login?cmd=login

#18 Updated by Massimiliano Assante over 3 years ago

@mnikolopoulos@cite.gr would it be possible to bind the google account to an existing user?

#19 Updated by Panagiota Koltsida over 3 years ago

@massimiliano.assante@isti.cnr.it as we have already discussed it is feasible to provide a solution where a user can have multiple email addresses. In the login process we can check all user's email addresses and identify him.
This means that a user can use any of the available login options, such as google, facebook, linkedin or his credentials and always be the same user as soon as the email address has been added and validated before the first login with the corresponding email address

If you are interesting in providing this solution we can work and release the needed hooks.

#20 Updated by Massimiliano Assante about 3 years ago

Yes, i think it would be useful. Also, to facilitate the users to connect their accounts we could add a portlet in the Profile section where he can enter his/her other email addresses (Google, In, etc)

#21 Updated by Panagiota Koltsida about 3 years ago

@massimiliano.assante@isti.cnr.it What we support is based on email addresses and not at social accounts. This means that if you are already registered with your email address and you use the same in a social network then you are the same user for liferay.
Regarding the portlet you are mentioning I prefer not to duplicate work since liferay provides already the UI to add additional email addresses. This is done using the "My Account" page. If you don't like this approach, you can add a section in the profile portlet where users can add additional emails. Again I'm highlighting the fact that we are talking about e-mails instead of social networks.

#22 Updated by Michalis Nikolopoulos about 3 years ago

  • % Done changed from 30 to 70

Here it is the custom login hook http://maven.research-infrastructures.eu/nexus/service/local/repositories/gcube-snapshots/content/gr/cite/login/login-hook/1.0.0-SNAPSHOT/login-hook-1.0.0-20160330.151734-2.war, i would suggest reading portal.properties before deploying it. It will make clear how to use it along with the social login hooks. Any questions/feedback/suggestions will help improve it.

#23 Updated by Massimiliano Assante about 3 years ago

The Social login portlet was correctly deployed on the development portal at http://dev4.d4science.org:8080

Minor graphical issues should be fixed, such as the Sign In button width that does not resize correctly when on phone (see screenshot attached) and i would suggest to separate the Sign In with Google, LinkedIn etc buttons as they are sticked together.

Also, the Social login portlet should remove the default mail domain from email input textbox leaving it empty.

#24 Updated by Michalis Nikolopoulos about 3 years ago

@massimiliano.assante@isti.cnr.it The css issue has been resolved and the component has been re-uploaded to the nexus.

#25 Updated by Panagiota Koltsida about 3 years ago

  • Related to Feature #3972: Allow users to login to portal with different e-mail addresses under the same account added

#26 Updated by Panagiota Koltsida about 3 years ago

  • Related to Feature #3974: Create a portlet where users can declare their additional e-mail addresses added

#27 Updated by Massimiliano Assante almost 3 years ago

  • Priority changed from High to Urgent

Hi @mnikolopoulos@cite.gr @p.koltsida@di.uoa.gr

I Just realised we'd need a minor edit when the login portlet is in "Logged in" Mode.

As in iMarine/BlueBridge production when the user access the portal page where the Sign in portlet is besides "You are signed in as $UserFull Name." we would like to add the following

Go to $CurrentSiteName Home

Go to $CurrentSite Shared Workspace

You can get $CurrentSiteName from themeDisplay.getSiteGroupName() object

The link for the shared Workspace instead you can use the following snippet:

<%@ page import="org.gcube.common.portal.GCubePortalConstants" %>
<%@ page import="org.gcube.common.portal.PortalContext" %>


PortalContext context = PortalContext.getConfiguration();
String mySiteURL = context.getSiteLandingPagePath(request);
String lilktoworkspace = mySiteURL+ GCubePortalConstants.USER_WORKSPACE_FRIENDLY_URL;

#28 Updated by Massimiliano Assante almost 3 years ago

See screenshot attached

#29 Updated by Michalis Nikolopoulos almost 3 years ago

  • Assignee changed from Michalis Nikolopoulos to Massimiliano Assante

Hi @massimiliano.assante@isti.cnr.it i have made the changes that you requested on the login hook, you can see tha war here: http://maven.research-infrastructures.eu/nexus/service/local/repositories/gcube-snapshots/content/gr/cite/login/login-hook/1.0.0-SNAPSHOT/login-hook-1.0.0-20160719.143156-24.war.
let me know if everything is working as you expected.

#30 Updated by Massimiliano Assante almost 3 years ago

  • % Done changed from 70 to 100
  • Status changed from In Progress to Closed

Works like a charm

#31 Updated by Massimiliano Assante almost 3 years ago

  • Assignee changed from Massimiliano Assante to Michalis Nikolopoulos

Also available in: Atom PDF