Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,14 @@ public function singleLogoutService() {
$decoded = (array)JWT::decode($jwt, new Key($key, 'HS256'));

$providerId = $decoded['oidcProviderId'] ?? null;
} catch (\DomainException $e) {
$this->logger->error(
'Failed to decode GSS JWT: ' . $e->getMessage()
. '. If the key is too short, gss.jwt.key must be at least 32 characters for HS256 (per RFC 7518).',
['exception' => $e]
);
} catch (\Exception $e) {
$this->logger->debug('Failed to get the logout provider ID in the request from GSS', ['exception' => $e]);
$this->logger->error('Failed to decode GSS JWT in single logout', ['exception' => $e]);
}
} else {
$providerId = $this->session->get(self::PROVIDERID);
Expand Down
Loading