Skip to content

Commit 765d804

Browse files
authored
Resolve issue #162 (#163)
* make lib/Store/* available for Symfony DI * fix ClientEntity postLogoutRedirectUri json_decode when 'post_logout_redirect_uri' is not defined
1 parent 28f92df commit 765d804

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Entity/ClientEntity.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ public static function fromState(array $state): self
9999
$client->isEnabled = (bool) $state['is_enabled'];
100100
$client->isConfidential = (bool) ($state['is_confidential'] ?? false);
101101
$client->owner = $state['owner'] ?? null;
102-
$client->postLogoutRedirectUri = $state['post_logout_redirect_uri'] !== null ?
103-
json_decode($state['post_logout_redirect_uri'], true) :
104-
[];
102+
$client->postLogoutRedirectUri = json_decode($state['post_logout_redirect_uri']??"[]",true);
105103
$client->backChannelLogoutUri = $state['backchannel_logout_uri'] ?? null;
106104

107105
return $client;

routing/services/services.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ services:
1414
SimpleSAML\Module\oidc\Factories\:
1515
resource: '../../lib/Factories/*'
1616

17+
SimpleSAML\Module\oidc\Store\:
18+
resource: '../../lib/Store/*'
19+
1720
SimpleSAML\Module\oidc\Server\AuthorizationServer:
1821
class: SimpleSAML\Module\oidc\Server\AuthorizationServer
1922

0 commit comments

Comments
 (0)