function auth0_user_info_page in Auth0 Single Sign On 7.2
Display auth0 info for the given user.
1 string reference to 'auth0_user_info_page'
- auth0_menu in ./
auth0.module - Implements hook_menu().
File
- ./
auth0.module, line 90
Code
function auth0_user_info_page($user) {
drupal_page_is_cacheable(FALSE);
if (!auth0_check_dependencies()) {
return drupal_goto();
}
if ($object = auth0_get_auth0_object_from_drupal_uid($user->uid)) {
if (defined('JSON_PRETTY_PRINT')) {
return '<pre>' . json_encode($object, JSON_PRETTY_PRINT) . '</pre>';
}
else {
return '<pre>' . print_r($object, TRUE) . '</pre>';
}
}
else {
return t('This user has not authenticated with Auth0');
}
}