This is useful for verifying that this request was initiated by
this consumer.
public getReturnTo ( ) : string | ||
return | string | $return_to The return_to URL supplied to the server on the initial request, or null if the response did not contain an 'openid.return_to' argument. |
function test_returnTo() { $query = array('openid.return_to' => 'return_to'); $message = Auth_OpenID_Message::fromPostArgs($query); $resp = new Auth_OpenID_SuccessResponse($this->endpoint, $message, array('openid.return_to')); $this->assertEquals($resp->getReturnTo(), 'return_to'); }