-
Notifications
You must be signed in to change notification settings - Fork 535
Description
When we introduced OpenID Connect support back in #5974 and PR #6433, we left out a few things. One of those was support for the email verified status of new user accounts.
Currently, only the Shibboleth provider offers support for this:
dataverse/src/main/java/edu/harvard/iq/dataverse/authorization/AuthenticationServiceBean.java
Lines 609 to 618 in 9ce4aa0
| if (ShibAuthenticationProvider.PROVIDER_ID.equals(auusLookup.getAuthenticationProviderId())) { | |
| Timestamp emailConfirmedNow = new Timestamp(new Date().getTime()); | |
| // Email addresses for Shib users are confirmed by the Identity Provider. | |
| authenticatedUser.setEmailConfirmed(emailConfirmedNow); | |
| authenticatedUser = save(authenticatedUser); | |
| } else { | |
| /* @todo Rather than creating a token directly here it might be | |
| * better to do something like "startConfirmEmailProcessForNewUser". */ | |
| confirmEmailService.createToken(authenticatedUser); | |
| } |
Within OpenID Connect, we have a defined scope email attribute email_verified, which can be set by the provider. (This is one of the points where OIDC offers more that OAuth2 only...).
We should start to support this, as it makes the process more easy, when the IDM/IAM/OIDC provider already did the verification for us.
I'm not sure if UI/UX team is involved here, as there is no UI change necessary.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status