You are here

function auth0_insert_auth0_user in Auth0 Single Sign On 7.2

Create a local cached Auth0 user object.

1 call to auth0_insert_auth0_user()
auth0_login_auth0_user in ./auth0.module
Log in an Auth0 authenticated user.

File

./auth0.module, line 597

Code

function auth0_insert_auth0_user($user_info, $uid) {
  $auth0_user = array(
    'auth0_id' => $user_info['user_id'],
    'drupal_id' => $uid,
    'auth0_object' => serialize($user_info),
  );
  drupal_write_record('auth0_user', $auth0_user);
}