Bug #11432

D4Science Gateway user registration: confirmation email is sent upon new user registration via Google or LinkedIn SSO

Added by Massimiliano Assante almost 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:Mar 13, 2018
Priority:NormalDue date:Mar 30, 2018
Assignee:Massimiliano Assante% Done:

100%

Category:Other
Sprint:zz - Unsprintable
Milestones:
Duration: 14

Description

And this should be avoided.. also because some nulls appear.

Dear Luca Frosini,

This is an automatic request for you to verify that we have the right email address. To verify your email please follow this link:

nullnull/portal/verify_email_address?ticketKey=675428a4-ed93-4281-bff3-011844639f35

Or enter the following verification code when requested:

Your verification code: 675428a4-ed93-4281-bff3-011844639f35

Sincerely,
D4Science Infrastructure Support Team

Related issues

Related to gCube - Release #11440: org.gcube.portal.google-login-hook.1-3-0 Released Mar 13, 2018
Related to gCube - Release #11443: org.gcube.portal.linkedin-login-hook.1-3-0 Released Mar 13, 2018
Related to D4Science Infrastructure - Upgrade #11447: Deployment of patch for fixing Bug #11432 (Google and Lin... Completed Mar 13, 2018 Mar 13, 2018

History

#1 Updated by Massimiliano Assante almost 2 years ago

  • % Done changed from 0 to 50
  • Status changed from New to In Progress

The issue of the null in the template is due to the fact that an empty service context is passed when the user is created. I'm going to patch this and the LinkedIn one and release them @p.koltsida@di.uoa.gr

in gr.cite.google.util.LoginHookEssentialMethods

ServiceContext serviceContext = new ServiceContext();

        try{
            user = UserLocalServiceUtil.addUser(creatorUserId, companyId,
                    autoPassword, password1, password2, autoScreenName, screenName,
                    emailAddress, 0, openId, locale, firstName, middleName,
                    lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
                    birthdayYear, jobTitle, groupIds, organizationIds, roleIds,
                    userGroupIds, sendEmail, serviceContext);

#3 Updated by Massimiliano Assante almost 2 years ago

  • Tracker changed from Feature to Bug

#4 Updated by Massimiliano Assante almost 2 years ago

  • Related to Release #11440: org.gcube.portal.google-login-hook.1-3-0 added

#5 Updated by Massimiliano Assante almost 2 years ago

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

Also LinkedIn has been patched.

#6 Updated by Massimiliano Assante almost 2 years ago

  • Related to Release #11443: org.gcube.portal.linkedin-login-hook.1-3-0 added

#7 Updated by Massimiliano Assante almost 2 years ago

  • Related to Upgrade #11447: Deployment of patch for fixing Bug #11432 (Google and LinkedIn SSO) added

Also available in: Atom PDF