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