|
24 | 24 | import java.util.Arrays; |
25 | 25 | import java.util.Date; |
26 | 26 | import java.util.List; |
| 27 | +import java.util.logging.Level; |
27 | 28 | import java.util.logging.Logger; |
28 | 29 | import jakarta.ejb.EJB; |
29 | 30 | import jakarta.ejb.EJBException; |
@@ -62,7 +63,7 @@ public class Shib implements java.io.Serializable { |
62 | 63 | HttpServletRequest request; |
63 | 64 |
|
64 | 65 | private String userPersistentId; |
65 | | - private String internalUserIdentifer; |
| 66 | + private String internalUserIdentifier; |
66 | 67 | AuthenticatedUserDisplayInfo displayInfo; |
67 | 68 | /** |
68 | 69 | * @todo Remove this boolean some day? Now the mockups show a popup. Should |
@@ -210,8 +211,8 @@ public void init() { |
210 | 211 | } |
211 | 212 |
|
212 | 213 | String usernameAssertion = getValueFromAssertion(ShibUtil.usernameAttribute); |
213 | | - internalUserIdentifer = ShibUtil.generateFriendlyLookingUserIdentifer(usernameAssertion, emailAddress); |
214 | | - logger.fine("friendly looking identifer (backend will enforce uniqueness):" + internalUserIdentifer); |
| 214 | + internalUserIdentifier = ShibUtil.generateFriendlyLookingUserIdentifier(usernameAssertion, emailAddress); |
| 215 | + logger.log(Level.FINE, "friendly looking identifier (backend will enforce uniqueness): {0}", internalUserIdentifier); |
215 | 216 |
|
216 | 217 | String shibAffiliationAttribute = settingsService.getValueForKey(SettingsServiceBean.Key.ShibAffiliationAttribute); |
217 | 218 | String affiliation = (StringUtils.isNotBlank(shibAffiliationAttribute)) |
@@ -326,7 +327,7 @@ public String confirmAndCreateAccount() { |
326 | 327 | AuthenticatedUser au = null; |
327 | 328 | try { |
328 | 329 | au = authSvc.createAuthenticatedUser( |
329 | | - new UserRecordIdentifier(shibAuthProvider.getId(), lookupStringPerAuthProvider), internalUserIdentifer, displayInfo, true); |
| 330 | + new UserRecordIdentifier(shibAuthProvider.getId(), lookupStringPerAuthProvider), internalUserIdentifier, displayInfo, true); |
330 | 331 | } catch (EJBException ex) { |
331 | 332 | /** |
332 | 333 | * @todo Show the ConstraintViolationException, if any. |
@@ -354,7 +355,7 @@ public String confirmAndConvertAccount() { |
354 | 355 | visibleTermsOfUse = false; |
355 | 356 | ShibAuthenticationProvider shibAuthProvider = new ShibAuthenticationProvider(); |
356 | 357 | String lookupStringPerAuthProvider = userPersistentId; |
357 | | - UserIdentifier userIdentifier = new UserIdentifier(lookupStringPerAuthProvider, internalUserIdentifer); |
| 358 | + UserIdentifier userIdentifier = new UserIdentifier(lookupStringPerAuthProvider, internalUserIdentifier); |
358 | 359 | logger.fine("builtin username: " + builtinUsername); |
359 | 360 | AuthenticatedUser builtInUserToConvert = authSvc.canLogInAsBuiltinUser(builtinUsername, builtinPassword); |
360 | 361 | if (builtInUserToConvert != null) { |
|
0 commit comments