Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrieder Schrempf <frieder.schrempf@online.de>2019-06-08 20:13:00 +0300
committerFrieder Schrempf <frieder.schrempf@online.de>2019-06-17 19:56:55 +0300
commit413c7a92390c27100f0abf1641562b27485dea1b (patch)
tree8a5905931e9f665b1df7a64127dd6ade38e7f616 /tests
parent3f64725f268e6e6f7ca2c6a74d9fb4897b613386 (diff)
Handle SLO logout requests from IdP via POST
Some IdPs send their SLO logout requests via POST. To handle them we need to add an entry in the routing table. Further, we need to hack around the issue, that php-saml only handles GET by copying the request from $_POST to $_GET. This solves #82. Signed-off-by: Frieder Schrempf <frieder.schrempf@online.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/AppInfo/RoutesTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/AppInfo/RoutesTest.php b/tests/unit/AppInfo/RoutesTest.php
index e806fa91..b8e71b04 100644
--- a/tests/unit/AppInfo/RoutesTest.php
+++ b/tests/unit/AppInfo/RoutesTest.php
@@ -55,6 +55,12 @@ class Test extends TestCase {
'verb' => 'GET',
],
[
+ 'name' => 'SAML#singleLogoutService',
+ 'url' => '/saml/sls',
+ 'verb' => 'POST',
+ 'postfix' => 'slspost',
+ ],
+ [
'name' => 'SAML#notProvisioned',
'url' => '/saml/notProvisioned',
'verb' => 'GET',