protected function SamlUserService::associateSamlIdWithAccount in SAML Authentication 8
Ensure that a SAML id is associated with a given user account.
This function is idempotent.
Parameters
$saml_id:
\Drupal\Core\Session\AccountInterface $account:
2 calls to SamlUserService::associateSamlIdWithAccount()
- SamlUserService::createUserFromSamlData in src/
SamlUserService.php - Create a new user from SAML response data.
- SamlUserService::handleSamlData in src/
SamlUserService.php - Take appropriate action on provided SAML data.
File
- src/
SamlUserService.php, line 180 - Contains Drupal\samlauth\SamlService.
Class
- SamlUserService
- Class SamlUserService.
Namespace
Drupal\samlauthCode
protected function associateSamlIdWithAccount($saml_id, AccountInterface $account) {
$this->user_data
->set('samlauth', $account
->id(), 'saml_id', $saml_id);
}