Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59475

Upgrade CAS to 1.3.5 for Moodle 3.4 release

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4
    • 3.4
    • Authentication
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-59475-master-cas
    • Hide

      A regression test should be enough, make sure authentication between CAS and moodle still works as expected.

      In order to execute this test, you should have a working CAS Server.

      There's a CAS VM on server to test this, please remember to change the network settings of the VM to bridge, so it gets an new ip address through the DHCP.

      Also, to establish connection between your moodle instance and the CAS server, you should change the _getServerBaseURL function on CAS/Client.php. The main reason is because CAS plugin by the default verify the host SSL and unless you have a HTTPS in your local machine, you should change this line.

      1. Replace the https to http on line 301, the line should be exactly like this:

      $this->_server['base_url'] = 'http://' . $this->_getServerHostname();
      

      2. Log as admin and Go to Plugins > Authentication > Manage authentication.
      3. Enable CAS server (SSO) and go to Settings. The config should be like this.

      Hostname: Your VM IP address 
      Base URI: cas-server-webapp-3.5.2/
      Port: 8080
      CAS logout option: Yes
      Multi-authentication: Yes
      

      4. Create a user cas1 and set the authentication method to: CAS server (SSO)
      5. Logout and click on Log In.
      6. You will be prompted to choose the authentication method, choose CAS user.
      7. Enter your cas1 user and cas1 password and click LOGIN.
      8. You should be redirected to your moodle home.

      Show
      A regression test should be enough, make sure authentication between CAS and moodle still works as expected. In order to execute this test, you should have a working CAS Server. There's a CAS VM on server to test this, please remember to change the network settings of the VM to bridge , so it gets an new ip address through the DHCP. Also, to establish connection between your moodle instance and the CAS server, you should change the _getServerBaseURL function on CAS/Client.php. The main reason is because CAS plugin by the default verify the host SSL and unless you have a HTTPS in your local machine, you should change this line. 1. Replace the https to http on line 301, the line should be exactly like this: $this->_server['base_url'] = 'http://' . $this->_getServerHostname(); 2. Log as admin and Go to Plugins > Authentication > Manage authentication. 3. Enable CAS server (SSO) and go to Settings. The config should be like this. Hostname: Your VM IP address Base URI: cas-server-webapp-3.5.2/ Port: 8080 CAS logout option: Yes Multi-authentication: Yes 4. Create a user cas1 and set the authentication method to: CAS server (SSO) 5. Logout and click on Log In. 6. You will be prompted to choose the authentication method, choose CAS user. 7. Enter your cas1 user and cas1 password and click LOGIN. 8. You should be redirected to your moodle home.

    Description

      /auth/cas/CAS/
      1.3.5 available
      http://developer.jasig.org/cas-clients/php/current/

      see also MDL-59456

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              marina Marina Glancy
              Jun Pataleta Jun Pataleta
              Dan Poltawski Dan Poltawski
              John Okely John Okely
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Nov/17