You are here

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

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

Update the auth0 user profile.

Parameters

array $userInfo: The user info array.

1 call to AuthController::updateAuth0User()
AuthController::processUserLogin in src/Controller/AuthController.php
Process the Auth0 user profile and sign in or sign the user up.

File

src/Controller/AuthController.php, line 734
Contains \Drupal\auth0\Controller\AuthController.

Class

AuthController
Controller routines for auth0 authentication.

Namespace

Drupal\auth0\Controller

Code

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