mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 18:13:41 +02:00
40 lines
901 B
PHP
40 lines
901 B
PHP
<?php
|
|
|
|
class OneLogin_Saml_Response extends OneLogin_Saml2_Response
|
|
{
|
|
/**
|
|
* Constructor that process the SAML Response,
|
|
* Internally initializes an SP SAML instance
|
|
* and an OneLogin_Saml2_Response.
|
|
*
|
|
* @param array|object $oldSettings Settings
|
|
* @param string $assertion SAML Response
|
|
*/
|
|
public function __construct($oldSettings, $assertion)
|
|
{
|
|
$auth = new OneLogin_Saml2_Auth($oldSettings);
|
|
$settings = $auth->getSettings();
|
|
parent::__construct($settings, $assertion);
|
|
}
|
|
|
|
/**
|
|
* Retrieves an Array with the logged user data.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_saml_attributes()
|
|
{
|
|
return $this->getAttributes();
|
|
}
|
|
|
|
/**
|
|
* Retrieves the nameId
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_nameid()
|
|
{
|
|
return $this->getNameId();
|
|
}
|
|
}
|