承接 quinninteractive/silverstripe-auth-remote-user 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quinninteractive/silverstripe-auth-remote-user

最新稳定版本:1.0.1

Composer 安装命令:

composer require quinninteractive/silverstripe-auth-remote-user

包简介

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

README 文档

README

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.

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.

This module requires SilverStripe framework 3.1.x.

This is version 1.0.1 of this module.

Configuration

To enable the optional features, put static calls into your _config.php:

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.

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.

统计信息

  • 总下载量: 467
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-27