mirror of https://github.com/jacekkow/uphpCAS

Jacek Kowalski
2015-08-17 2092d32d71d7e65111c7ae08ba95b4145631a10e
Ask CAS to use POST method when passing ticket
1 files modified
6 ■■■■ changed files
uphpCAS.php 6 ●●●● patch | view | raw | blame | history
uphpCAS.php
@@ -53,7 +53,7 @@
    }
    
    public function loginUrl() {
        return $this->serverUrl.'/login?service='.urlencode($this->serviceUrl);
        return $this->serverUrl.'/login?method=POST&service='.urlencode($this->serviceUrl);
    }
    
    public function logoutUrl() {
@@ -73,8 +73,8 @@
        session_start();
        if(isset($_SESSION['uphpCAS-user'])) {
            return $_SESSION['uphpCAS-user'];
        } elseif(isset($_GET['ticket'])) {
            $user = $this->verifyTicket($_GET['ticket']);
        } elseif(isset($_REQUEST['ticket'])) {
            $user = $this->verifyTicket($_REQUEST['ticket']);
            $_SESSION['uphpCAS-user'] = $user;
            return $user;
        } else {