You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hacked a quick fix, but there may be a better way.
I had to move the state parameter to the end of the authurl in order for it to return a token and not fail when checking against the session saved state. The following line was failing:
// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
In the base League code: AbstractProvider.getAuthorizationParameters()
my solution was to just rebuild the options array in the right order:
I hacked a quick fix, but there may be a better way.
I had to move the state parameter to the end of the authurl in order for it to return a token and not fail when checking against the session saved state. The following line was failing:
// Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
In the base League code: AbstractProvider.getAuthorizationParameters()
my solution was to just rebuild the options array in the right order:
and then things came together.
The text was updated successfully, but these errors were encountered: