public function UrlBuildersTest::testThatAuthorizeLinkIncludesConnection in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Authentication/ UrlBuildersTest.php, line 32
Class
Namespace
Auth0\Tests\API\AuthenticationCode
public function testThatAuthorizeLinkIncludesConnection() {
$api = new Authentication('test-domain.auth0.com', '__test_client_id__');
$authorize_url = $api
->get_authorize_link('code', 'https://example.com/cb', 'test-connection');
$authorize_url_query = parse_url($authorize_url, PHP_URL_QUERY);
$authorize_url_query = explode('&', $authorize_url_query);
$this
->assertContains('connection=test-connection', $authorize_url_query);
}