-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS: Windows
- PHP version: 7.4
- Package name and version: 2.12
Steps to reproduce
- See below code example
- Validate that createAuthUrl output is the same in both test cases, i.e. $auth_url == $auth_url2
Code example
$redirect_uri = 'https://' . $_SERVER['HTTP_HOST']; //Base url
//Test 1: Set redirect URI for first page
$client->setRedirectUri($redirect_uri.'/test1.php');
$client->setScopes('email');
echo('Validate setting URI 1: '.$client->getRedirectUri());
PHP_EOL;
$auth_url = $client->createAuthUrl();
echo('Generated Auth URL: '.$auth_url);
PHP_EOL;
//Test 2: Set redirect URI for second page
$client->setRedirectUri($redirect_uri.'/test2.php');
echo('Validate setting URI 2: '.$client->getRedirectUri());
PHP_EOL
$auth_url2 = $client->createAuthUrl();
echo('Generated Auth2 URL: '.$auth_url2);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.