1<?php 2 3class OneLogin_Saml_Response extends OneLogin_Saml2_Response 4{ 5 /** 6 * Constructor that process the SAML Response, 7 * Internally initializes an SP SAML instance 8 * and an OneLogin_Saml2_Response. 9 * 10 * @param array|object $oldSettings Settings 11 * @param string $assertion SAML Response 12 */ 13 public function __construct($oldSettings, $assertion) 14 { 15 $auth = new OneLogin_Saml2_Auth($oldSettings); 16 $settings = $auth->getSettings(); 17 parent::__construct($settings, $assertion); 18 } 19 20 /** 21 * Retrieves an Array with the logged user data. 22 * 23 * @return array 24 */ 25 public function get_saml_attributes() 26 { 27 return $this->getAttributes(); 28 } 29 30 /** 31 * Retrieves the nameId 32 * 33 * @return string 34 */ 35 public function get_nameid() 36 { 37 return $this->getNameId(); 38 } 39} 40