Download the PHP package antons/silverstripe-ssp without Composer
On this page you can find all versions of the php package antons/silverstripe-ssp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antons/silverstripe-ssp
More information about antons/silverstripe-ssp
Files in antons/silverstripe-ssp
Package silverstripe-ssp
Short Description Authentication module for Silverstripe 3.1+ using the simpleSAMLphp library.
License BSD-3-Clause
Homepage https://github.com/antons-/silverstripe-ssp
Informations about the package silverstripe-ssp
SilverStripe SSP module
I am no longer maintaining this module since SilverStripe Ltd have released their own SAML authentication module - silverstripe/silverstripe-activedirectory
This module is a wrapper around the SimpleSAMLphp thirdparty library, providing federated authentication.
It replaces the Security
controller with the SSPSecurity
controller which deals with authenticating users.
Caution: This is NOT a plug and play module! This module is just a light wrapper, and requires configuration of the complex SimpleSAMLphp library.
Parts of this module is based on the silverstripe-labs/silverstripe-shibboleth module for SilverStripe 2.4.
Requirements
- SilverStripe 3.1+
- PHP 5.3
- SimpleSAMLphp requirements
Installation
Use Composer
to install the module in the root folder of your SilverStripe website:
Module setup
Adapt the paths/domains according to your specific environment in the following instructions.
-
Create a link to the
vendor/simplesamlphp/simplesamlphp/www
folder using any of the following methods:a. Create a mod_alias directive in the Apache virtual host for your SilverStripe install. Call it
simplesaml
and point it tovendor/simplesamlphp/simplesamlphp/www
folder. This is the preferred method.b. Instead of mod_alias, you can create a symbolic link on your system
c. If you are using a shared hosting environment and don't have access to the Apache virtual config or the direct filesystem, you can add the following code to your
mysite/_config.php
file and PHP will create the symbolic link. -
Make a copy of the default SimpleSAMLphp configuration files:
- Follow steps 1 to 5 of the SimpleSAMLphp Service Provider Quickstart documentation to set up SimpleSAMLphp.
SingleLogoutService (SLO)
If you want to setup the SingleLogoutService
response location for your identity provider metadata, the URL is:
This is required for the identity provider to logout properly.
SimpleSAMLphp frontend
You should be able to access the frontend to SimpleSAMLphp via https://www.yourdomain.com/simplesaml
. Ensure that you set a password to the frontend in the SimpleSAMLphp config file.
Adding authenticators to SSPSecurity
To add a new authenticator, create a new class that extends SSPAuthenticator
and implement the SSPAuthenticator->authenticate()
function:
Once you have your new authenticator, you must now add it to your file:
To set a default authenticator for SSPSecurity:
URLs for login/logout
SSPSecurity
replaces the Security
actions for login/logout:
Login using the default authenticator:
Login using an custom authenticator:
Logout:
Notes
- The Security class in
silverstripe/framework
is overridden by this module and as a consequence the default SilverStripe login page isn't used. This is by design. If the authentication source uses SimpleSAMLphp for the login page, you can follow the guide here on theming SimpleSAMLphp. If you are using another authentication source with its own login page ie. Google Apps, Microsoft ADFS etc, then you will need to refer to the documentaion of that provider on how to theme it. - While this module hooks directly into SimpleSAMLphp, it is assumed that SimpleSAMLphp would exclusively operate as a service provider for SilverStripe. It is theoretically possible to run SimpleSAMLphp as an identity provider in conjunction with this module, but this configuration is unsupported.
- Passive login (or passive single sign on) is supported by this module, but you must enable it manually. To do this, add to the end of your Session::cookie_secureTRUESession::cookie_secureTRUESECSESSIDSECSESSIDvendor/simplesamlphp/simplesamlphp/config/config.php
$config = array (
'session.phpsession.cookiename' => 'SECSESSID',
'session.phpsession.httponly' => TRUE,
);
License
Copyright (c) 2015, Anton Smith, workSpace, Otago Polytechnic
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of workSpace nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All versions of silverstripe-ssp with dependencies
composer/installers Version *
silverstripe/framework Version 3.1.*
openid/php-openid Version dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2
simplesamlphp/saml2 Version ~0.3
simplesamlphp/xmlseclibs Version 1.3.2
simplesamlphp/simplesamlphp Version 1.13.2