function openid_connect_connect_account in OpenID Connect / OAuth client 7
Same name and namespace in other branches
- 8 openid_connect.module \openid_connect_connect_account()
Connect an external OpenID Connect account to a Drupal user account.
Parameters
object $account: The Drupal user object.
string $client_name: The client machine name.
string $sub: The 'sub' property identifying the external account.
2 calls to openid_connect_connect_account()
- openid_connect_connect_current_user in ./
openid_connect.module - Connect the current user's account to an external provider.
- openid_connect_user_insert in ./
openid_connect.module - Implements hook_user_insert().
File
- ./
openid_connect.module, line 724 - A pluggable client implementation for the OpenID Connect protocol.
Code
function openid_connect_connect_account($account, $client_name, $sub) {
user_set_authmaps($account, array(
'authname_openid_connect_' . $client_name => $sub,
));
}