Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9, 1.9.13, 2.3.2, 2.7
-
Component/s: Authentication
-
Environment:CAS authentication
-
Testing Instructions:
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE, MOODLE_23_STABLE, MOODLE_27_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-22469-master -
Pull Master Diff URL:
Description
The test on authCAS==NOCAS is done after the first CAS connexion, so that it works only every second time.
The other time, moodle redirects towards the CAS server.
2 patches are attached.
light : quick hack to get the job done
full : full cleanup that also fixes the bug, which fixes indentation problems and translates comments (french -> english).
Prerequisites
- You need to have CAS server (SSO) authentication method enabled with the setting "Multi-authentication" set to "yes"
- You need two account. One using CAS authentication method, one using manual authentication method.
To reproduce:
- Go to login/index.php. You should the double auth method page.
- Connect with the CAS auth method using the CAS user.
- Disconnect yourself
- Go to login/index.php or login/index.php?authCAS=NOCAS You will be reconnected to the CAS user. You will not be able to choose the auth method or choose the other method.