You are here

protected function AuthController::updateAuth0User in Auth0 Single Sign On 8

Same name and namespace in other branches
  1. 8.2 src/Controller/AuthController.php \Drupal\auth0\Controller\AuthController::updateAuth0User()

Update the auth0 user profile.

1 call to AuthController::updateAuth0User()
AuthController::processUserLogin in src/Controller/AuthController.php
Process the auth0 user profile and signin or signup the user.

File

src/Controller/AuthController.php, line 439

Class

AuthController
Controller routines for auth0 authentication.

Namespace

Drupal\auth0\Controller

Code

protected function updateAuth0User($userInfo) {
  db_update('auth0_user')
    ->fields(array(
    'auth0_object' => serialize($userInfo),
  ))
    ->condition('auth0_id', $userInfo['user_id'], '=')
    ->execute();
}