File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 $ ticketStore ->deleteTicket ($ session ->getSessionId ());
5959}
6060
61+ $ httpUtils = new \SimpleSAML \Utils \HTTP ();
62+
6163if ($ as ->isAuthenticated ()) {
6264 \SimpleSAML \Logger::debug ('casserver: performing a real logout ' );
6365
6466 if ($ casconfig ->getValue ('skip_logout_page ' , false )) {
6567 $ as ->logout ($ _GET ['url ' ]);
6668 } else {
6769 $ as ->logout (
68- \ SimpleSAML \ Utils \ HTTP :: addURLParameters (
70+ $ httpUtils -> addURLParameters (
6971 \SimpleSAML \Module::getModuleURL ('casserver/loggedOut.php ' ),
7072 array_key_exists ('url ' , $ _GET ) ? ['url ' => $ _GET ['url ' ]] : []
7173 )
7577 \SimpleSAML \Logger::debug ('casserver: no session to log out of, performing redirect ' );
7678
7779 if ($ casconfig ->getValue ('skip_logout_page ' , false )) {
78- \ SimpleSAML \ Utils \ HTTP :: redirectTrustedURL (SimpleSAML \ Utils \ HTTP :: addURLParameters ($ _GET ['url ' ], []));
80+ $ httpUtils -> redirectTrustedURL ($ httpUtils -> addURLParameters ($ _GET ['url ' ], []));
7981 } else {
80- \ SimpleSAML \ Utils \ HTTP :: redirectTrustedURL (
81- \ SimpleSAML \ Utils \ HTTP :: addURLParameters (
82+ $ httpUtils -> redirectTrustedURL (
83+ $ httpUtils -> addURLParameters (
8284 \SimpleSAML \Module::getModuleURL ('casserver/loggedOut.php ' ),
8385 array_key_exists ('url ' , $ _GET ) ? ['url ' => $ _GET ['url ' ]] : []
8486 )
Original file line number Diff line number Diff line change 102102 'proxies ' => array_merge ([$ serviceUrl ], $ serviceTicket ['proxies ' ]),
103103 'sessionId ' => $ serviceTicket ['sessionId ' ]
104104 ]);
105+ $ httpUtils = new Utils \HTTP ();
105106 try {
106- Utils \ HTTP :: fetch ($ pgtUrl . '?pgtIou= ' . $ proxyGrantingTicket ['iou ' ] .
107+ $ httpUtils -> fetch ($ pgtUrl . '?pgtIou= ' . $ proxyGrantingTicket ['iou ' ] .
107108 '&pgtId= ' . $ proxyGrantingTicket ['id ' ]);
108109
109110 $ protocol ->setProxyGrantingTicketIOU ($ proxyGrantingTicket ['iou ' ]);
You can’t perform that action at this time.
0 commit comments