Retrouvez les vidéos de la journée d'étude Gitlab, le compagnon pour votre production scientifique organisée par le GT DOREMIT : https://www.canal-u.tv/chaines/ad/journee-gitlab

Skip to content
Snippets Groups Projects

class cas

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Aline
    myClassCas.php 494 B
    class Cas
    {
     
         public function __construct($casServer, $casPort, $casPath) {
            \phpCAS::client(CAS_VERSION_2_0, $casServer, $casPort, $casPath, false);
            \phpCAS::setCasServerCACert('/etc/ssl/certs/UTN_USERFirst_Hardware_Root_CA.pem');
            return;
        }
        public function login() {
            \phpCAS::forceAuthentication();
            return \phpCAS::getUser();
        }
        
        public function logout($url) {
            \phpCAS::logout(['service' => $url]);
            return;
        }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment