Skip to content

Commit 31522bc

Browse files
committed
add endSessionEndpoint to configuration to support ending the session
1 parent 8e668d7 commit 31522bc

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/OpenIDConfiguration/OpenIDConfiguration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function __construct(
5858
public array $idTokenSigningAlgValuesSupported = [],
5959
public string $userinfoEndpoint = '',
6060
public array $codeChallengeMethodsSupported = [],
61+
public string $endSessionEndpoint = '',
6162
) {
6263
}
6364
}

src/OpenIDConfiguration/OpenIDConfigurationLoader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ protected function getConfigurationFromIssuer(): OpenIDConfiguration
9191
subjectTypesSupported: $response->json('subject_types_supported', []),
9292
idTokenSigningAlgValuesSupported: $response->json('id_token_signing_alg_values_supported', []),
9393
userinfoEndpoint: $response->json('userinfo_endpoint', ''),
94-
codeChallengeMethodsSupported: $response->json('code_challenge_methods_supported', [])
94+
codeChallengeMethodsSupported: $response->json('code_challenge_methods_supported', []),
95+
endSessionEndpoint: $response->json('end_session_endpoint', ''),
9596
);
9697
}
9798

tests/Feature/Http/Controllers/LoginControllerResponseTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ protected function exampleOpenIDConfiguration(
620620
idTokenSigningAlgValuesSupported: ["RS256"],
621621
userinfoEndpoint: "https://provider.example.com/userinfo",
622622
codeChallengeMethodsSupported: $codeChallengeMethodsSupported,
623+
endSessionEndpoint: "https://provider.example.com/endSession",
623624
);
624625
}
625626

tests/Feature/Http/Controllers/LoginControllerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ protected function exampleOpenIDConfiguration(): OpenIDConfiguration
149149
idTokenSigningAlgValuesSupported: ["RS256"],
150150
userinfoEndpoint: "https://provider.example.com/userinfo",
151151
codeChallengeMethodsSupported: ["S256"],
152+
endSessionEndpoint: "https://provider.example.com/endSession",
152153
);
153154
}
154155
}

0 commit comments

Comments
 (0)