OneLogin_Saml2_Auth::getAttribute PHP Méthode

getAttribute() public méthode

Returns the requested SAML attribute
public getAttribute ( string $name ) : array | null
$name string The requested attribute of the user.
Résultat array | null Requested SAML attribute ($name).
    public function getAttribute($name)
    {
        assert('is_string($name)');
        $value = null;
        if (isset($this->_attributes[$name])) {
            return $this->_attributes[$name];
        }
        return $value;
    }

Usage Example

Exemple #1
0
 /**
  * Call the getAttribute method on OneLogin_Saml2_Auth.
  */
 public function getAttribute($name)
 {
     return $this->instance->getAttribute($name);
 }