You are here

public function SamlService::getAttributes in SAML Authentication 8.2

Same name and namespace in other branches
  1. 8.3 src/SamlService.php \Drupal\samlauth\SamlService::getAttributes()
  2. 4.x src/SamlService.php \Drupal\samlauth\SamlService::getAttributes()

Returns all attributes in a SAML response.

This method will return valid data after a response is processed (i.e. after samlAuth->processResponse() is called).

Return value

array An array with all returned SAML attributes..

2 calls to SamlService::getAttributes()
SamlService::acs in src/SamlService.php
Processes a SAML response (Assertion Consumer Service).
SamlService::synchronizeUserAttributes in src/SamlService.php
Synchronizes user data with attributes in the SAML request.

File

src/SamlService.php, line 341

Class

SamlService
Governs communication between the SAML toolkit and the IDP / login behavior.

Namespace

Drupal\samlauth

Code

public function getAttributes() {
  return $this
    ->getSamlAuth()
    ->getAttributes();
}