diff --git a/lib/Auth/Source/OAuth2.php b/lib/Auth/Source/OAuth2.php index 617dd63..1480c09 100644 --- a/lib/Auth/Source/OAuth2.php +++ b/lib/Auth/Source/OAuth2.php @@ -104,7 +104,7 @@ public function authenticate(&$state) // We are going to need the authId in order to retrieve this authentication source later, in the callback $state[self::AUTHID] = $this->getAuthId(); - $stateID = \SimpleSAML\Auth\State::saveState($state, self::STAGE_INIT); + $stateID = \SimpleSAML\Auth\State::saveState($state, self::STAGE_INIT, true); $providerLabel = $this->getLabel(); Logger::debug("authoauth2: $providerLabel saved state with stateID=$stateID");