getRedirectUri() public method

public getRedirectUri ( )
 public function testLessSimple()
 {
     $data = array('client_id' => 'foo', 'client_secret' => 'bar', 'authorize_endpoint' => 'http://www.example.org/authorize', 'token_endpoint' => 'http://www.example.org/token', 'redirect_uri' => 'http://www.example.org/callback', 'credentials_in_request_body' => true);
     $c = new ClientConfig($data);
     $this->assertEquals('foo', $c->getClientId());
     $this->assertEquals('bar', $c->getClientSecret());
     $this->assertEquals('http://www.example.org/authorize', $c->getAuthorizeEndpoint());
     $this->assertEquals('http://www.example.org/token', $c->getTokenEndpoint());
     $this->assertEquals('http://www.example.org/callback', $c->getRedirectUri());
     $this->assertTrue($c->getCredentialsInRequestBody());
 }
示例#2
0
 public function testLessSimple()
 {
     $data = array("client_id" => "foo", "client_secret" => "bar", "authorize_endpoint" => "http://www.example.org/authorize", "token_endpoint" => "http://www.example.org/token", "redirect_uri" => "http://www.example.org/callback", "credentials_in_request_body" => true);
     $c = new ClientConfig($data);
     $this->assertEquals("foo", $c->getClientId());
     $this->assertEquals("bar", $c->getClientSecret());
     $this->assertEquals("http://www.example.org/authorize", $c->getAuthorizeEndpoint());
     $this->assertEquals("http://www.example.org/token", $c->getTokenEndpoint());
     $this->assertEquals("http://www.example.org/callback", $c->getRedirectUri());
     $this->assertTrue($c->getCredentialsInRequestBody());
 }