File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
2- require_once __DIR__ . '/../../lib/functions.php ' ;
2+ require_once __DIR__ . '/../../lib/functions-fed .php ' ;
33
44logout_fed ();
55header ('Location: /test ' );
Original file line number Diff line number Diff line change 11<?php
22
3- require_once __DIR__ . '/../../lib/functions.php ' ;
3+ require_once __DIR__ . '/../../lib/functions-fed .php ' ;
44@session_start ();
55
66// remove cookies
Original file line number Diff line number Diff line change 11<?php
22require_once __DIR__ . '/../../lib/const.php ' ;
33require_once __DIR__ . '/../../lib/hub-const.php ' ;
4- require_once __DIR__ . '/../../lib/functions.php ' ;
4+ require_once __DIR__ . '/../../lib/functions-fed .php ' ;
55require_once __DIR__ . '/../../simplesamlphp/public/_include.php ' ;
66
77@session_start ();
Original file line number Diff line number Diff line change 1+ <?php
2+ require_once __DIR__ . '/../simplesamlphp/public/_include.php ' ;
3+ require_once __DIR__ . '/functions.php ' ;
4+
5+ /**
6+ * Logout from the federation
7+ */
8+ function logout_fed ()
9+ {
10+ $ as = new \SimpleSAML \Auth \Simple ('default-sp ' );
11+ if ($ as ->isAuthenticated ()) {
12+ $ as ->logout ();
13+ }
14+ }
15+
16+ ?>
Original file line number Diff line number Diff line change 11<?php
22require_once __DIR__ . '/hub-const.php ' ;
33require_once __DIR__ . '/const.php ' ;
4- require_once __DIR__ . '/../simplesamlphp/public/_include.php ' ;
54
65$ SESSION_NAME = session_name ();
76
87
9- /**
10- * Logout from the federation
11- */
12- function logout_fed ()
13- {
14- $ as = new \SimpleSAML \Auth \Simple ('default-sp ' );
15- if ($ as ->isAuthenticated ()) {
16- $ as ->logout ();
17- }
18- }
19-
208/**
219 * Check the user autorization of this Coursen
2210 *
You can’t perform that action at this time.
0 commit comments