We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c472d1a + bed96ec commit ce49154Copy full SHA for ce49154
lib/Controller/MasterController.php
@@ -79,15 +79,16 @@ public function __construct(
79
*/
80
public function autoLogout(?string $jwt) {
81
try {
82
- if ($jwt !== null && $this->master->isValidJwt($jwt)) {
+ if ($jwt !== null) {
83
$key = $this->gss->getJwtKey();
84
$decoded = (array)JWT::decode($jwt, new Key($key, Application::JWT_ALGORITHM));
85
-
86
$idp = $decoded['saml.idp'] ?? null;
+
87
$logoutUrl = $this->urlGenerator->linkToRoute('user_saml.SAML.singleLogoutService');
88
- if (!empty($logoutUrl) && $idp !== null) {
+ if (!empty($logoutUrl)) {
89
$token = [
90
'logout' => 'logout',
91
+ 'idp' => $idp,
92
'exp' => time() + 300, // expires after 5 minutes
93
];
94
0 commit comments