Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: Uniquelogin authentication.

Uniquelogin authentication: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
 
Line 3: Line 3:
This is integrated into Moodle 1.9 onwards.
This is integrated into Moodle 1.9 onwards.


The Unique Authentication module is available in the Modules and Plugins database, here: https://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==
==Overview==
Authentication plugin goal is to make sure that each user in Moodle only has one active session simultaneoulsy.
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 ready to work on Moodle 2.0 as it addresses modifications in session table and database access through global DB instance.  
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.  


==Assumptions==
==Assumptions==


#Database-stored sessions are enabled.
To work properly, the plugin needs the following:
#Uniquelogin is ative in authentication plugins page and is above the authentication plugin you want to prevent multiple simultaneous logins.
#Database-stored sessions are enabled (see Notes/Tips bellow).
#Uniquelogin is active in authentication plugins page.


==Installation==
==Installation==


#Download the plug-in file from https://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/''
#As adminsitrator go to '''Users » Auhentication » Manage authentication'''
#On the Administration Block, click on '''Site administration » Users » Authentication » Manage authentication'''
#Enable the authentication plug-in called '''Unique login'''
#Enable the authentication plug-in called '''Unique login'''
#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:
#Go to '''Server » Session Handling'''
#On the Administration Block, click on '''Site administration » Server » Session Handling'''
#Enable the parameter '''Use database for session information'''
#Enable the setting '''Use database for session information'''


*Don't set the Unique Login as the authentication method for any user. If this method is active and is the first on the authentication methods list, it will be applied to all users, whatever their authentication method is.
==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

Latest revision as of 12:18, 17 January 2014

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 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.

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 » Users » Authentication » Manage authentication
  4. Enable the authentication plug-in called Unique login
  5. 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