Uniquelogin authentication: Difference between revisions

From MoodleDocs
Uniquelogin authentication
Type Unique authentication
Set N/A
Downloads http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
Issues to be added
Discussion to be added
Maintainer(s) António Vilela
m (Added link to spanish translation of page)
m (Correction)
 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|maintainer = António Vilela
|maintainer = António Vilela
}}
}}
This document describes how to set up '''Uniquelogin Authentication''' in Moodle.  
This document describes how to set up '''Uniquelogin Authentication''' in Moodle.  


Line 12: Line 11:


The Unique Authentication module is available for download from the Moodle plugins directory: http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
The Unique Authentication module is available for download from the Moodle plugins directory: http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
==Overview==
The goal of Uniquelogin Authentication plugin is to make sure that each user in Moodle can only have one active session simultaneously.


==Overview==
The code is prepared to work on Moodle 1.9, 2.X, 3.X and 4.X as it addresses modifications in session table and database access through global DB instance.  
The goal of Uniquelogin Authentication plugin is to make sure that each user in Moodle can only have one active session simultaneoulsy.


The code is prepared to work on Moodle 1.9 and 2.X as it addresses modifications in session table and database access through global DB instance.  
The administrator can configure whether teacher and administrator roles are affected by the plugin. A user is considered a teacher if he has a teacher role at any course on Moodle.


Once the user logs in, the existing previous session is terminated. Note that this does not work with SingleSignOn plugins.
==Assumptions==
==Assumptions==
To work properly, the plugin needs the following:
To work properly, the plugin needs the following:
#Database-stored sessions are enabled (see Notes/Tips bellow).
#Database-stored sessions are enabled (see Notes/Tips bellow).
#Uniquelogin is active in authentication plugins page.
#Uniquelogin is active in authentication plugins page.
==Installation==
==Installation==
#Download the plug-in file from http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
#Download the plug-in file from http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
#Unzip the file to authentication plug-ins folder ''moodle/auth/''
#Unzip the file to authentication plug-ins folder ''moodle/auth/''
#On the Administration Block, click on '''Site administration » Users » Authentication » Manage authentication'''
#On the Administration Block, click on '''Site administration » Plugins » Authentication » Manage authentication'''
#Enable the authentication plug-in called '''Unique login'''
#Enable the authentication plug-in '''Unique login'''
#Move the plug-in to the top position
#Press the plugin arrow button to move the plug-in to the top position
 
==Notes/Tips==
==Notes/Tips==
*As mentioned in '''Assumptions''', you must use database-stored sessions to use this plug-in. To achieve this follow these steps:
*As mentioned in '''Assumptions''', you must use database-stored sessions to use this plug-in. To achieve this follow these steps:
#On the Administration Block, click on '''Site administration » Server » Session Handling'''
#On the Administration Block, click on '''Site administration » Server » Session Handling'''
#Enable the setting '''Use database for session information'''
#Enable the setting '''Use database for session information'''
==See also==
==See also==
*[http://moodle.org/mod/forum/view.php?id=42 Using Moodle: User authentication] forum
*[http://moodle.org/mod/forum/view.php?id=42 Using Moodle: User authentication] forum
*https://docs.moodle.org/pt/Uniquelogin_authentication - this documentation in Portuguese
[[Category:Contributed code]]
[[Category:Contributed code]]
[[Category:Authentication]]
[[Category:Authentication]]
[[es:Autenticación con ingresoúnico]]
[[es:Autenticación con ingresoúnico]]

Latest revision as of 20:39, 29 March 2023

This document describes how to set up Uniquelogin Authentication in Moodle.

This is integrated into Moodle 1.9 onwards.

The Unique Authentication module is available for download from the Moodle plugins directory: http://moodle.org/plugins/view.php?plugin=auth_uniquelogin

Overview

The goal of Uniquelogin Authentication plugin is to make sure that each user in Moodle can only have one active session simultaneously.

The code is prepared to work on Moodle 1.9, 2.X, 3.X and 4.X as it addresses modifications in session table and database access through global DB instance.

The administrator can configure whether teacher and administrator roles are affected by the plugin. A user is considered a teacher if he has a teacher role at any course on Moodle.

Once the user logs in, the existing previous session is terminated. Note that this does not work with SingleSignOn plugins.

Assumptions

To work properly, the plugin needs the following:

  1. Database-stored sessions are enabled (see Notes/Tips bellow).
  2. Uniquelogin is active in authentication plugins page.

Installation

  1. Download the plug-in file from http://moodle.org/plugins/view.php?plugin=auth_uniquelogin
  2. Unzip the file to authentication plug-ins folder moodle/auth/
  3. On the Administration Block, click on Site administration » Plugins » Authentication » Manage authentication
  4. Enable the authentication plug-in Unique login
  5. Press the plugin arrow button to move the plug-in to the top position

Notes/Tips

  • As mentioned in Assumptions, you must use database-stored sessions to use this plug-in. To achieve this follow these steps:
  1. On the Administration Block, click on Site administration » Server » Session Handling
  2. Enable the setting Use database for session information

See also