You are here

function audit_log_openid_connect_openid_connect_post_authorize in Audit Log 7

Implements hook_openid_connect_post_authorize().

File

modules/audit_log_openid_connect/audit_log_openid_connect.module, line 10
Openid_connect related hook implemenations for the Audit log module.

Code

function audit_log_openid_connect_openid_connect_post_authorize($tokens, $account, $userinfo, $client_name) {
  audit_log($account, 'user', 'openid-connect-post-authorize', $account, NULL, REQUEST_TIME, array(
    'message' => format_string('Authorized @name.', array(
      '@name' => $account->name,
    )),
  ));
}