Skip to content

Commit

Permalink
Introduction to use shibboleth authentication module in Moodle.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapsa committed Mar 18, 2005
1 parent 28902d9 commit 64a2cb2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions auth/shibboleth/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ ShibRequireSession On
require valid-user


NEW! Modifications to login/index.php
-------------------------------------------------------------------------------
Moodle checks if user theres a shibboleth authenticated session alive. If
username attribute is found, user is considered authenticated.

Add code after line 31:

if ($_SERVER[$CFG->shib_user_attribute]) {
/// Log in automatically if user is has been shibboleth authenticated
$frm->username = $_SERVER[$CFG->shib_user_attribute];
$frm->password = "guest";
} else {
$frm = data_submitted();
}


MOODLE Authentication options
-------------------------------------------------------------------------------
Expand Down

0 comments on commit 64a2cb2

Please sign in to comment.