OneLogin_Saml_Response::get_nameid PHP Method

get_nameid() public method

Retrieves the nameId
public get_nameid ( ) : string
return string
    public function get_nameid()
    {
        return $this->getNameId();
    }

Usage Example

Exemplo n.º 1
0
 public function testReturnNameId()
 {
     $xml = file_get_contents(TEST_ROOT . '/data/responses/response1.xml.base64');
     $response = new OneLogin_Saml_Response($this->_settings, $xml);
     $this->assertEquals('*****@*****.**', $response->getNameId());
     $this->assertEquals('*****@*****.**', $response->get_nameid());
 }