Skip to content

Unice-SIL/easyappointments-cas_authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

EASYAPPOINTMENTS CAS AUTHENTICATION

This plugin allows you to use CAS authentication with your easyappointements platform.

DISCLAIMER

I developed and tested this plugin with easyappointments 1.2.1, I can't guarantee it will work with another version.

REQUIRES

You need to install easyappointments-authentication plugin before

INSTALLATION

Put files in your easyappointments directory.

CONFIGURATION

To configure the plugin, edit the config.php file at the root of your application directory.

Define the authentication mode
// config.php
...
/**
 * The class used for authentication
 */
const AUTHENTICATION_CLASS = 'authentication/CasAuthentication/CasAuthentication';

Configure CAS
// config.php
..
/**
 * CAS version
 * Default = '2.0'
 */
const CAS_VERSION = '2.0';

/**
 * CAS host server
 * Default null
 */
const CAS_HOST = 'my_cas_server.domain.com';

/**
 * CAS port
 * Default = 80
 */
const CAS_PORT = 443;

/**
 * CAS context (ex: '/cas' if your cas server is requested on http://my_cas_server.domain.com/cas)
 * Default = ''
 */
const CAS_CONTEXT = '';

/**
 * CAS service redirection after login. If null redirect to previous url before CAS called
 * Default = ''
 */
const CAS_SERVICE_REDIRECT_URL = '';

/**
 * CAS certificat
 * Default = ''
 */
const CAS_CERT = '';

/**
 * CAS not validate certificate
 * Default = FALSE
 */
const CAS_NO_SERVER_VALIDATION = FALSE;

/**
 * CAS debug mode
 * Default = FALSE
 */
const CAS_DEBUG = FALSE;

/**
 * CAS verbose
 * Default = FALSE
 */
const CAS_VERBOSE = FALSE;

If you let the default user provider, after authentication the user data are fetch from Easyappointments database by username. You will need to create users in Easyappointments to assign them a role. If user not found, no role is assigned to him and he has no privileges to access to backend. Of course you can set another user provider (see UserProvider documentation from easyappointments-authentication plugin).

REPORT AN ISSUE

Send me an email to frederic.casazza@unice.fr

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages