@@ -38,6 +38,7 @@ public function testConfigurationIsLoaded(): void
38
38
$ this ->assertSame ("https://provider.example.com/jwks " , $ configuration ->jwksUri );
39
39
$ this ->assertSame ("https://provider.example.com/token " , $ configuration ->tokenEndpoint );
40
40
$ this ->assertSame ("https://provider.example.com/userinfo " , $ configuration ->userinfoEndpoint );
41
+ $ this ->assertSame ("https://provider.example.com/logout " , $ configuration ->endSessionEndpoint );
41
42
}
42
43
43
44
public function testConfigurationIsLoadedMultipleTimesWhenNotCached (): void
@@ -60,6 +61,7 @@ public function testConfigurationIsLoadedMultipleTimesWhenNotCached(): void
60
61
$ this ->assertSame ("https://provider.example.com/jwks " , $ configuration ->jwksUri );
61
62
$ this ->assertSame ("https://provider.example.com/token " , $ configuration ->tokenEndpoint );
62
63
$ this ->assertSame ("https://provider.example.com/userinfo " , $ configuration ->userinfoEndpoint );
64
+ $ this ->assertSame ("https://provider.example.com/logout " , $ configuration ->endSessionEndpoint );
63
65
}
64
66
65
67
public function testConfigurationIsCached (): void
@@ -87,6 +89,7 @@ public function testConfigurationIsCached(): void
87
89
$ this ->assertSame ("https://provider.example.com/jwks " , $ configuration ->jwksUri );
88
90
$ this ->assertSame ("https://provider.example.com/token " , $ configuration ->tokenEndpoint );
89
91
$ this ->assertSame ("https://provider.example.com/userinfo " , $ configuration ->userinfoEndpoint );
92
+ $ this ->assertSame ("https://provider.example.com/logout " , $ configuration ->endSessionEndpoint );
90
93
}
91
94
92
95
public function testLoaderThrowsExceptionWhenProviderReturns400ResponseCode (): void
@@ -198,6 +201,7 @@ public function testLoaderReturnsEmptyConfigurationOnEmptyJsonResponse(): void
198
201
$ this ->assertEmpty ($ configuration ->authorizationEndpoint );
199
202
$ this ->assertEmpty ($ configuration ->jwksUri );
200
203
$ this ->assertEmpty ($ configuration ->tokenEndpoint );
204
+ $ this ->assertEmpty ($ configuration ->userinfoEndpoint );
201
205
}
202
206
203
207
public function testConfigurationIsLoadedMultipleTimesWhenCacheStoreIsNull (): void
@@ -221,6 +225,7 @@ public function testConfigurationIsLoadedMultipleTimesWhenCacheStoreIsNull(): vo
221
225
$ this ->assertSame ("https://provider.example.com/jwks " , $ configuration ->jwksUri );
222
226
$ this ->assertSame ("https://provider.example.com/token " , $ configuration ->tokenEndpoint );
223
227
$ this ->assertSame ("https://provider.example.com/userinfo " , $ configuration ->userinfoEndpoint );
228
+ $ this ->assertSame ("https://provider.example.com/logout " , $ configuration ->endSessionEndpoint );
224
229
}
225
230
226
231
protected function fakeSuccessfulResponse (): void
@@ -264,7 +269,8 @@ protected function fakeSuccessfulResponse(): void
264
269
],
265
270
"code_challenge_methods_supported " => [
266
271
"S256 "
267
- ]
272
+ ],
273
+ "end_session_endpoint " => "https://provider.example.com/logout "
268
274
])
269
275
]);
270
276
}
0 commit comments