Download the PHP package simplesamlphp/simplesamlphp-module-memcookie without Composer
On this page you can find all versions of the php package simplesamlphp/simplesamlphp-module-memcookie. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simplesamlphp/simplesamlphp-module-memcookie
More information about simplesamlphp/simplesamlphp-module-memcookie
Files in simplesamlphp/simplesamlphp-module-memcookie
Package simplesamlphp-module-memcookie
Short Description A SimpleSAMLphp module that allows integration with Auth MemCookie, allowing web applications written in other languages than PHP to integrate with SimpleSAMLphp.
License LGPL-2.1
Homepage https://simplesamlphp.org/
Informations about the package simplesamlphp-module-memcookie
SimpleSAMLphp AuthMemCookie module
This module implements Auth MemCookie support for SimpleSAMLphp. This allows you to integrate SimpleSAMLphp with web applications written in languages other than PHP.
AuthMemCookie works by reading authentication data from a memcache server and setting environment variables based on the attributes found in this data. It also allows you to use the default Apache access control features to restrict access to your site.
Requisites
This module requires you to install and set up the following requirements:
- SimpleSAMLphp running as a Service Provider.
- A memcache server.
- Auth MemCookie .
Installation
Once you have installed SimpleSAMLphp, installing this module is very simple. First of all, you will need to download Composer if you haven't already. After installing Composer, just execute the following command in the root of your SimpleSAMLphp installation:
where dev-master
instructs Composer to install the master
branch from the Git repository. See the
releases available if you want to use a
stable version of the module.
Configuration
Next thing you need to do is to enable the module:
in config.php
, search for the module.enable
key and set memcookie
to true:
The first step to use this module is to configure Auth MemCookie appropriately. The following example (that you can
find also in extra/auth_memcookie.conf
) might be helpful:
Once Auth MemCookie has been correctly configured, you need to configure the module itself by editing the
config/authmemcookie.php
file. Set the username
configuration option to the name of an attribute that you are sure
to receive and that will identify the user unambiguously. Read the instructions in the file itself if you need help to
configure it.
If you already have an auth source configured and working in SimpleSAMLphp, and all your memcookie configuration options are correct, you are ready to go! Make sure to reload Apache so that it uses the new configuration and Auth MemCookie is loaded. Then you can point your browser to the location that you have protected in Apache and it should redirect you automatically to the IdP for authentication.
In order to see all the environment variables you have available in the protected location, you can drop a PHP script like the following in there and access it from your browser after authenticating to your IdP:
All versions of simplesamlphp-module-memcookie with dependencies
ext-memcached Version *
simplesamlphp/composer-module-installer Version ^1.3
simplesamlphp/simplesamlphp Version ^2.1
symfony/http-foundation Version ^6.4