57
There are two mechanisms by which IVLE can connect to an external server to
58
get information about users. These are typically used to connect to an
59
institution's central database to authenticate students, and download student
60
details (such as names and subject enrolment details).
62
Neither of these mechanisms are necessary; they are only useful where
63
third-party authentication is required.
70
IVLE's database contains user accounts, which includes a password (hash)
71
field. In this way, IVLE is fully-functioning without third-party
72
authentication modules. However, it is also often desirable to allow users to
73
log in without storing their password hash in the local database. IVLE allows
74
plug-in "auth modules" which can authenticate users with arbitrary logic, and
75
also create new user accounts.
77
This has at least the following two use cases:
79
* Allowing users to authenticate upon each login with a remote server. This
80
allows users to log in without ever storing their password hash locally.
81
* Allowing users who have never used IVLE to log in, without an IVLE user
82
account. Upon seeing an unknown username, an auth module can connect to a
83
remote server, authenticate the unknown user, and create an IVLE user
84
account on-the-fly, optionally downloading additional details (such as full
87
TODO: Describe how auth modules work.
89
.. _ref-subject-pulldown-modules:
91
Subject pulldown modules
92
------------------------
94
IVLE maintains lists of enrolled students in each subject, providing access to
95
worksheets and allowing submissions for enrolled users. Again, enrolments can
96
be made manually, but IVLE also allows plug-in "subject pulldown modules"
97
which can enrol students with arbitrary logic.
99
This allows a third-party server to dictate which IVLE users are enrolled in
102
Subject pulldown modules are used by the :program:`ivle-enrolallusers` script
103
to automatically enrol all existing users in subjects. Note that this does not
104
enrol users who are not in the IVLE database (perhaps because a third-party
105
auth module is being used to create user accounts on-the-fly, and some
106
students have not yet logged in for the first time).
108
Because of this, subject pulldown modules are also used whenever a student
109
logs in. This ensures that students who log in for the first time are
110
automatically enrolled in all subjects, according to the third-party server,
111
and also ensures that enrolments are kept up-to-date, should the third-party
112
server add new enrolments, or should new subjects be created in IVLE.
115
Enrolments are never removed by subject pulldown modules, only added.
116
Students can only be un-enrolled from a subject by an administrator.
118
TODO: Describe how subject pulldown modules work.