Skip to content

Commit

Permalink
Merge branch 'main' into 8898-create-a-new-email-schedule-to-send-out…
Browse files Browse the repository at this point in the history
…-a-new-email-to-encourage-users-to-add-works-to-their-orcid-record
  • Loading branch information
amontenegro authored Nov 22, 2023
2 parents 1176ed9 + e863322 commit d42002b
Show file tree
Hide file tree
Showing 139 changed files with 889 additions and 722 deletions.
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
## v2.44.14 - 2023-11-21

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.13...v2.44.14)

- [#6938](https://github.com/ORCID/ORCID-Source/pull/6938): force pull

## v2.44.13 - 2023-11-17

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.12...v2.44.13)

- [#6937](https://github.com/ORCID/ORCID-Source/pull/6937): Transifex

## v2.44.12 - 2023-11-16

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.11...v2.44.12)

- [#6936](https://github.com/ORCID/ORCID-Source/pull/6936): fix: Add missing capture event in shibboleth account link
- [#6935](https://github.com/ORCID/ORCID-Source/pull/6935): allways send 2 days reminder
- [#6934](https://github.com/ORCID/ORCID-Source/pull/6934): Fix NPE on social sign in

### Fix

- Add missing capture event in shibboleth account link

## v2.44.11 - 2023-11-16

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.10...v2.44.11)

- [#6933](https://github.com/ORCID/ORCID-Source/pull/6933): Add missing keys

## v2.44.10 - 2023-11-16

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.9...v2.44.10)

- [#6932](https://github.com/ORCID/ORCID-Source/pull/6932): Just one query

## v2.44.9 - 2023-11-14

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.8...v2.44.9)

- [#6930](https://github.com/ORCID/ORCID-Source/pull/6930): Remove orcid, redirect_url, public_page and last_modified from event

## v2.44.8 - 2023-11-14

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.7...v2.44.8)

- [#6929](https://github.com/ORCID/ORCID-Source/pull/6929): Changed the code to use triples

## v2.44.7 - 2023-11-09

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.6...v2.44.7)

- [#6927](https://github.com/ORCID/ORCID-Source/pull/6927): Add more logging for when the request changes during oauth

## v2.44.6 - 2023-11-08

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.5...v2.44.6)

- [#6926](https://github.com/ORCID/ORCID-Source/pull/6926): fix: Add create event to ShibbolethController and Add missing member …

### Fix

- Add create event to ShibbolethController and Add missing member name

## v2.44.5 - 2023-11-03

[Full Changelog](https://github.com/ORCID/ORCID-Source/compare/v2.44.4...v2.44.5)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
package org.orcid.core.common.manager;

import org.orcid.core.utils.EventType;
import org.orcid.pojo.ajaxForm.RequestInfoForm;

import javax.servlet.http.HttpServletRequest;

import org.orcid.core.utils.EventType;

/**
*
* @author Daniel Palafox
*
*/
public interface EventManager {

boolean removeEvents(String orcid);

void createEvent(String orcid, EventType eventType, HttpServletRequest request, RequestInfoForm requestInfoForm);
void createEvent(EventType eventType, HttpServletRequest request);

}
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
package org.orcid.core.common.manager.impl;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.Date;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.orcid.core.common.manager.EventManager;
import org.orcid.core.constants.OrcidOauth2Constants;
import org.orcid.core.manager.ClientDetailsEntityCacheManager;
import org.orcid.core.manager.v3.read_only.RecordNameManagerReadOnly;
import org.orcid.core.utils.EventType;
import org.orcid.jaxb.model.clientgroup.ClientType;
import org.orcid.jaxb.model.v3.release.record.Name;
import org.orcid.persistence.dao.EventDao;
import org.orcid.persistence.jpa.entities.ClientDetailsEntity;
import org.orcid.persistence.jpa.entities.EventEntity;
import org.orcid.pojo.ajaxForm.PojoUtil;
import org.orcid.pojo.ajaxForm.RequestInfoForm;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

/**
*
* @author Daniel Palafox
Expand All @@ -30,47 +35,49 @@ public class EventManagerImpl implements EventManager {
@Resource
private ClientDetailsEntityCacheManager clientDetailsEntityCacheManager;

@Override
public boolean removeEvents(String orcid) {
return eventDao.removeEvents(orcid);
}
@Resource(name = "recordNameManagerReadOnlyV3")
private RecordNameManagerReadOnly recordNameManagerReadOnly;

@Override
public void createEvent(String orcid, EventType eventType, HttpServletRequest request, RequestInfoForm requestInfoForm) {
public void createEvent(EventType eventType, HttpServletRequest request) {
String label = "Website";
String clientId = null;
String redirectUrl = null;
String publicPage = null;

if (eventType == EventType.PUBLIC_PAGE) {
publicPage = orcid;
orcid = null;
} else {
if (request != null) {
Boolean isOauth2ScreensRequest = (Boolean) request.getSession().getAttribute(OrcidOauth2Constants.OAUTH_2SCREENS);
if (isOauth2ScreensRequest != null && isOauth2ScreensRequest) {
String queryString = (String) request.getSession().getAttribute(OrcidOauth2Constants.OAUTH_QUERY_STRING);
clientId = getParameterValue(queryString, "client_id");
redirectUrl = getParameterValue(queryString, "redirect_uri");
ClientDetailsEntity clientDetailsEntity = clientDetailsEntityCacheManager.retrieve(clientId);
label = "OAuth " + clientDetailsEntity.getClientName();
}
} else if (requestInfoForm != null) {
if (request != null) {
Boolean isOauth2ScreensRequest = (Boolean) request.getSession().getAttribute(OrcidOauth2Constants.OAUTH_2SCREENS);
RequestInfoForm requestInfoForm = (RequestInfoForm) request.getSession().getAttribute("requestInfoForm");
if (requestInfoForm != null) {
clientId = requestInfoForm.getClientId();
redirectUrl = removeAttributesFromUrl(requestInfoForm.getRedirectUrl());
label = "OAuth " + requestInfoForm.getClientName();
label = "OAuth " + requestInfoForm.getMemberName() + " " + requestInfoForm.getClientName();
} else if (isOauth2ScreensRequest != null && isOauth2ScreensRequest) {
String queryString = (String) request.getSession().getAttribute(OrcidOauth2Constants.OAUTH_QUERY_STRING);
clientId = getParameterValue(queryString, "client_id");
ClientDetailsEntity clientDetailsEntity = clientDetailsEntityCacheManager.retrieve(clientId);
String memberName = "";
String clientName = clientDetailsEntity.getClientName();

if (ClientType.PUBLIC_CLIENT.equals(clientDetailsEntity.getClientType())) {
memberName = "PubApp";
} else if (!PojoUtil.isEmpty(clientDetailsEntity.getGroupProfileId())) {
Name name = recordNameManagerReadOnly.getRecordName(clientDetailsEntity.getGroupProfileId());
if (name != null) {
memberName = name.getCreditName() != null ? name.getCreditName().getContent() : "";
}
}

if (StringUtils.isBlank(memberName)) {
memberName = clientName;
}
label = "OAuth " + memberName + " " + clientName;
}
}

EventEntity eventEntity = new EventEntity();

eventEntity.setOrcid(orcid);
eventEntity.setEventType(eventType.getValue());
eventEntity.setClientId(clientId);
eventEntity.setRedirectUrl(redirectUrl);
eventEntity.setLabel(label);
eventEntity.setPublicPage(publicPage);

eventEntity.setDateCreated(new Date());
eventDao.createEvent(eventEntity);
}

Expand Down
6 changes: 3 additions & 3 deletions orcid-core/src/main/resources/i18n/about_de.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
home.distinguish_yourself=UNTERSCHEIDEN SIE SICH IN
home.three_easy=DREI EINFACHEN SCHRITTE
home.orcid_provides=ORCID bietet eine dauerhafte digitale Kennung, die Sie von allen anderen Forschern unterscheidet und durch die Integration in wichtige Forschungsabläufe wie die Einreichung von Manuskripten und Fördermittelanträgen automatisierte Verknüpfungen zwischen Ihnen und Ihren beruflichen Aktivitäten unterstützt, um sicherzustellen, dass Ihre Arbeit anerkannt wird.
home.orcid_provides=ORCID bietet eine dauerhafte digitale Kennung, die Sie von allen anderen Forschern unterscheidet und durch die Integration in wichtige Forschungsabläufe wie die Einreichung von Manuskripten und Fördermittelanträgen automatisierte Verknüpfungen zwischen Ihnen und Ihren beruflichen Aktivitäten unterstützt, um sicherzustellen, dass Ihre Werk anerkannt wird.
home.find_out_more=Mehr erfahren
home.one=1
home.register=REGISTRIEREN
Expand All @@ -13,8 +13,8 @@ home.info=INFO
home.enhance_your=Erweitern Sie Ihren ORCID-Eintrag mit Ihren beruflichen Informationen und verlinken Sie ihn mit Ihren anderen Kennungen (wie Scopus, ResearcherID oder LinkedIn).
home.three=3
home.user_your=BENUTZEN SIE IHRE
home.orcid_id=ORCID-iD
home.include_your=Fügen Sie Ihre ORCID-Kennung auf Ihrer Webseite ein, wenn Sie Publikationen einreichen, Fördermittel beantragen sowie in jedem Forschungsablauf, um sicherzustellen, dass Sie für Ihre Arbeit anerkannt werden.
home.orcid_id=ORCID ID
home.include_your=Fügen Sie Ihre ORCID-Kennung auf Ihrer Webseite ein, wenn Sie Publikationen einreichen, Fördermittel beantragen sowie in jedem Forschungsablauf, um sicherzustellen, dass Sie für Ihre Werk anerkannt werden.
home.members_make=MITGLIEDER MACHEN ORCID MÖGLICH!
home.orcid_is=ORCID ist eine gemeinnützige Organisation, die von einer globalen Gemeinschaft von Organisationsmitgliedern unterstützt wird, darunter Forschungsorganisationen, Verlage, Geldgeber, Berufsverbände und andere Interessengruppen im Forschungsökosystem.
home.curious_about=Neugierig, wer unsere Mitglieder sind?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

email.2fa_disabled.subject=[ORCID] تم تعطيل المصادقة الثنائية على حسابك
email.2fa_disabled.two_factor_auth_disabled=لقد تم تعطيل المصادقة الثنائية في سجل ORCID الخاص بك. يعني هذا أننا لن نطلب رمز المصادقة الخاص بك بعد الآن عند تسجيل الدخول إلى ORCID. إذا قمت بإيقاف تشغيل المصادقة الثنائية، فلا داعي لاتخاذ أي إجراء آخر.
email.2fa_disabled.if_you_received.html=إذا تلقيت هذا البريد الإلكتروني ولكنك لم تقم بتعطيل المصادقة الثنائية، فقد يكون حسابك قد تعرض للاختراق. يرجى <a href="https://support.orcid.org/"> الاتصال بنا </a> على الفور.
email.2fa_disabled.if_you_received.html=إذا تلقيت هذا البريد الإلكتروني ولكنك لم تقم بتعطيل المصادقة الثنائية، فقد يكون حسابك قد تعرض للاختراق. يرجى <a href="https://support.orcid.org/">الاتصال بنا</a> على الفور.
email.2fa_disabled.no_reply=يرجى ملاحظة أن عنوان البريد الإلكتروني هذا لا يستقبل أي ردود. تنتقل الردود على هذه الرسالة إلى صندوق بريد غير مُراقب.
email.2fa_disabled.more_info.html=إذا كانت لديك أي أسئلة أخرى أو كنت بحاجة إلى المساعدة ، يرجى زيارة <a href="https://support.orcid.org/hc/en-us/articles/360006971673"> قاعدة المعارف </a> الخاصة بنا أو <a href="https://support.orcid.org/"> الاتصال بنا </a>.
email.2fa_disabled.more_info.html=إذا كانت لديك أي أسئلة أخرى أو كنت بحاجة إلى المساعدة ، يرجى زيارة <a href="https://support.orcid.org/hc/en-us/articles/360006971673"> قاعدة المعارف </a> الخاصة بنا أو <a href="https://support.orcid.org/">الاتصال بنا</a>.
email.2fa_disabled.if_you_received=إذا تلقيت هذا البريد الإلكتروني ولكنك لم تقم بتعطيل المصادقة الثنائية، فقد يكون حسابك قد تعرض للاختراق. يرجى الاتصال على الفور بالدعم على https://support.orcid.org/.
email.2fa_disabled.more_info=إذا كانت لديك أي أسئلة أخرى أو كنت بحاجة إلى المساعدة، يرجى زيارة قاعدة المعارف الخاصة بنا على https://support.orcid.org/hc/en-us/articles/360006971673 أو الاتصال بالدعم على https://support.orcid.org/.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

email.2fa_disabled.subject=[ORCID] Dvoufaktorové ověřování je na vašem účtu neaktivní
email.2fa_disabled.two_factor_auth_disabled=Dvoufázové ověření bylo ve vašem záznamu ORCID zakázáno. To znamená, že při přihlašování k ORCID již nebudeme požadovat ověřovací kód. Pokud jste to byli vy, kdo vypnul dvoufázové ověřování, není nutná žádná další akce.
email.2fa_disabled.if_you_received.html=Pokud jste obdrželi tento e-mail, ale nezakázali jste dvoufázové ověření, mohlo dojít k prolomení vašeho účtu. <a href="https://support.orcid.org/"> Kontaktujte nás</a> prosím neodkladně.
email.2fa_disabled.if_you_received.html=Pokud jste obdrželi tento e-mail, ale nezakázali jste dvoufázové ověření, mohlo dojít k prolomení vašeho účtu. Neprodleně <a href="https://support.orcid.org/">nás kontaktujte</a>.
email.2fa_disabled.no_reply=Berte prosím na vědomí, že na tuto adresu nelze odpovědět. Odpovědi na tuto zprávu budou doručeny do nesledované schránky.
email.2fa_disabled.more_info.html=Pokud máte jakékoli další otázky nebo potřebujete pomoc, navštivte naši <a href="https://support.orcid.org/hc/en-us/articles/360006971673">Znalostní bázi</a> nebo <a href="https://support.orcid.org/">nás kontaktujte</a>.
email.2fa_disabled.if_you_received=Pokud jste obdrželi tento e-mail, ale nezakázali jste dvoufázové ověření, mohlo dojít k prolomení vašeho účtu. Kontaktujte prosím neodkladně podporu na https://support.orcid.org/.
email.2fa_disabled.more_info=Pokud máte jakékoli další otázky nebo potřebujete pomoc, navštivte naši Znalostní bázi na adrese https://support.orcid.org/hc/en-us/articles/360006971673 nebo nás kontaktujte na adrese https://support.orcid.org/.
email.2fa_disabled.more_info.html=Pokud máte jakékoli další otázky nebo potřebujete pomoc, navštivte naši <a href="https://support.orcid.org/hc/en-us/articles/360006971673"> Znalostní bázi</a> nebo <a href="https://support.orcid.org/">nás kontaktujte</a>.
email.2fa_disabled.if_you_received=Pokud jste obdrželi tento e-mail, ale nezakázali jste dvoufázové ověření, mohlo dojít k prolomení vašeho účtu. Neprodleně prosím kontaktujte podporu na adrese https://support.orcid.org/.
email.2fa_disabled.more_info=Pokud máte jakékoli další otázky nebo potřebujete pomoc, navštivte naši Znalostní bázi na adrese https://support.orcid.org/hc/en-us/articles/360006971673 nebo kontaktujte podporu na adrese https://support.orcid.org/.

email.2fa_disabled.two_factor_disabled=Dvojité ověření pro váš účet ORCID bylo deaktivováno. To znamená, že při přihlašování k ORCID již nebudeme požadovat ověřovací kód.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

email.2fa_disabled.subject=[ORCID] Tu cuenta no tiene habilitada la autenticación de dos factores.
email.2fa_disabled.two_factor_auth_disabled=Se ha desactivado la autenticación de dos factores en tu registro ORCID. Esto significa que ya no te pediremos tu código de autenticación cuando accedas a ORCID. Si has desactivado la autenticación de dos factores, no se requiere ninguna acción adicional.
email.2fa_disabled.if_you_received.html=Si has recibido este correo pero no has desactivado la autenticación de dos factores, puede ser que alguien haya accedido indebidamente a tu cuenta. Por favor <a href="https://support.orcid.org/">ponte en contacto</a> con nosotros de inmediato.
email.2fa_disabled.if_you_received.html=Si ha recibido este correo electrónico, pero no ha desactivado la autenticación de dos factores, es posible que su cuenta esté en peligro. <a href="https://support.orcid.org/">Contacte con nosotros</a> de inmediato.
email.2fa_disabled.no_reply=Tenga en cuenta que esta dirección de correo no ofrece respuesta, pues todo mensaje recibido por ella termina en una bandeja de entrada no monitorizada.
email.2fa_disabled.more_info.html=SI tienes cualquier duda o necesitas ayuda, echa un vistazo a nuestra <a href="https://support.orcid.org/hc/en-us/articles/360006971673">base de conocimiento</a> o <a href="https://support.orcid.org/">ponte en contacto con nosotros</a>.
email.2fa_disabled.if_you_received=Si has recibido este correo pero no has desactivado la autenticación de dos factores puede ser que alguien haya accedido indebidamente a tu cuenta. Ponte en contacto con el servicio de soporte en https://support.orcid.org/ de inmediato.
email.2fa_disabled.more_info=Si tienes cualquier otra pregunta o necesitas ayuda respecto a cualquier otro asunto, visita nuestra base de conocimiento en https://support.orcid.org/hc/en-us/articles/360006971673 o contacta a support at https://support.orcid.org/.
email.2fa_disabled.more_info.html=Si tiene cualquier duda o necesita ayuda, visite nuestra <a href="https://support.orcid.org/hc/en-us/articles/360006971673">base de consulta</a> o <a href="https://support.orcid.org/">contacte con nosotros</a>.
email.2fa_disabled.if_you_received=Si ha recibido este correo electrónico, pero no ha desactivado la autenticación de dos factores, es posible que su cuenta esté en peligro. Contacte con el servicio de ayuda de inmediato a través de https://support.orcid.org/.
email.2fa_disabled.more_info=Si tiene cualquier duda o necesita ayuda, visite nuestra base de consulta en https://support.orcid.org/hc/en-us/articles/360006971673 o contacte con el servicio de ayuda a través de https://support.orcid.org/.

email.2fa_disabled.two_factor_disabled=Se ha desactivado la autenticación de dos factores en su registro ORCID. Esto significa que ya no le pediremos su código de autenticación cuando acceda a ORCID.
Loading

0 comments on commit d42002b

Please sign in to comment.