2017 © Pedro Peláez
 

silverstripe-module silverstripe-auth-remote-user

Logs members in via the REMOTE_USER server variable; optionally creates new members.

image

quinninteractive/silverstripe-auth-remote-user

Logs members in via the REMOTE_USER server variable; optionally creates new members.

  • Monday, June 27, 2016
  • by oddnoc
  • Repository
  • 4 Watchers
  • 1 Stars
  • 438 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

REMOTE_USER authentication

Description

This module extends Controller to automatically log in the SilverStripe member whose Email field matches the server REMOTE_USER variable ($_SERVER['REMOTE_USER']). Optionally, it can create a new Member record for a server-authenticated user when no matching record is found. If auto-creation is not enabled, and there is no match, then this module does nothing., (*1)

This module was created to support Apache with mod_shib, but it works the same for any mechanism that sets REMOTE_USER, including basic auth., (*2)

This module requires SilverStripe framework 3.1.x., (*3)

This is version 1.0.1 of this module., (*4)

Configuration

To enable the optional features, put static calls into your _config.php:, (*5)

AuthRemoteUserExtension::setAutoCreateUser(true);
AuthRemoteUserExtension::setAutoUserGroup($group_name);

AuthRemoteUserExtension::setAutoCreateUser(true) enables the creation of a new Member record when an authenticated user does not match any existing record. The only field populated is Email., (*6)

AuthRemoteUserExtension::setAutoUserGroup($group_name) sets the group to which new users will be added. If the group does not exist, no Member record will be created, even if auto-creation is enabled., (*7)

The Versions

27/06 2016

dev-develop

dev-develop

Logs members in via the REMOTE_USER server variable; optionally creates new members.

  Sources   Download

MIT

The Requires

 

27/06 2016

dev-master

9999999-dev

Logs members in via the REMOTE_USER server variable; optionally creates new members.

  Sources   Download

MIT

The Requires

 

27/06 2016

1.0.1

1.0.1.0

Logs members in via the REMOTE_USER server variable; optionally creates new members.

  Sources   Download

MIT

The Requires

 

04/05 2016

1.0.0

1.0.0.0

Logs members in via the REMOTE_USER server variable; optionally creates new members.

  Sources   Download

MIT

The Requires