Skip to content
Snippets Groups Projects
Commit bcd0ae9b authored by Jaime Pérez's avatar Jaime Pérez
Browse files

bugfix: Do not set the auth token with the setCookie() method from the session handler.

Related to previous commits. The SimpleSAML_Session::updateSessionCookies() updates both the session cookie and the auth token. For the latter, it uses the setCookie() method from the session handler, while it should use the SimpleSAML\Utils\HTTP::setCookie() method instead.
parent 3ad8a9f2
No related branches found
No related tags found
No related merge requests found
...@@ -676,7 +676,7 @@ class SimpleSAML_Session ...@@ -676,7 +676,7 @@ class SimpleSAML_Session
if ($this->authToken !== null) { if ($this->authToken !== null) {
$globalConfig = SimpleSAML_Configuration::getInstance(); $globalConfig = SimpleSAML_Configuration::getInstance();
$sessionHandler->setCookie( \SimpleSAML\Utils\HTTP::setCookie(
$globalConfig->getString('session.authtoken.cookiename', 'SimpleSAMLAuthToken'), $globalConfig->getString('session.authtoken.cookiename', 'SimpleSAMLAuthToken'),
$this->authToken, $this->authToken,
$params $params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment