Fix test failures due to new APIs.
@@ -137,9 +137,6 @@ public class IdentityUserNameResolverListener extends AbstractIdentityUserOperat
return true;
}
- // TODO: 12/19/19 This doPostAddUserWithID signature will be changed in the carbon-kernel 4.6.0-beta. This should
- // be updated accordingly.
-
@Override
public boolean doPostAddUserWithID(User user, Object credential, String[] roleList, Map<String, String> claims,
String profile, UserStoreManager userStoreManager) throws UserStoreException {
@@ -1095,9 +1092,7 @@ public class IdentityUserNameResolverListener extends AbstractIdentityUserOperat
return true;
}
- // TODO: 12/19/19 getUsernameByClaims(List<LoginIdentifier> loginIdentifiers) method should be used here from
- // kernel 4.6.0-beta
- String username = null;
+ String username = ((AbstractUserStoreManager) userStoreManager).getUsernameByClaims(loginIdentifiers);
for (UserOperationEventListener listener : getUserStoreManagerListeners()) {
if (!(listener instanceof IdentityUserIdResolverListener)) {
