@Override public Identity doFind(UserId userId) { Logger.debug( "doFind SecureSocial Find User by Id : " + userId.id() + " / " + userId.providerId()); // Recherche d'un user existant et création ou mise à jour des données en SGBD User userCfp = User.findByExternalId(userId.id(), userId.providerId()); Identity identity = null; if (userCfp != null) { identity = userToIdentity(userCfp); } return identity; }
public static AppUser find(UserId userId) { return find.where() .eq("userId", userId.id()) .eq("providerId", userId.providerId()) .findUnique(); }