return null;
}
protected void handleAuthenticationData(HttpServletRequest request, HttpServletResponse response, RequestData requestData, OAuthType type, String jsonData) throws Exception {
UserPojo userPojo = null;
try {
userPojo = jsonMapper.getJsonMapper().readValue(jsonData, UserPojo.class);
} catch (JsonGenerationException e) {
logger.error(e.getMessage());
} catch (JsonMappingException e) {
logger.error(e.getMessage());
}
if (userPojo != null) {
final String email = userPojo.getEmailAccount();
final String firstName = userPojo.getFirstName();
final String lastName = userPojo.getLastName();
final String gender = userPojo.getGender();
final String username = userPojo.getNickname();
Customer customer = customerService.getCustomerByLoginOrEmail(email);
if (customer == null) {
// CREATE A NEW CUSTOMER
customer = new Customer();