firesphere/yubiauth

使用 Yubikey 启用身份验证

安装: 130

依赖: 0

建议者: 1

安全: 0

星标: 5

关注者: 4

分支: 2

类型:silverstripe-vendormodule

2.2.0 2017-11-15 07:04 UTC

README

Scrutinizer Status License CircleCI codecov Maintainability

警告

当前 SS4 分支已损坏,基于核心内部身份验证重构。

在此重构完成之前,本模块的 SS4 版本将无法正常工作。

用法

使用 composer 安装模块

composer require firesphere\yubiauth

配置

在环境文件中配置您的 ClientID 和 API 密钥。

define('YUBIAUTH_CLIENTID', '1234');
define('YUBIAUTH_APIKEY', 'apikeyfromyubico');  // https://upgrade.yubico.com/getapikey');

选项

可选地,在您的 YML 文件中配置您自己的 URL 端点

YubikeyAuthenticator:
    AuthURL: 'https://my-auth-url.com'

注意事项

如果您使用自己的 Yubikey 身份验证服务器,发送到该服务器的任何一次性密码 不会 在公共 Yubico API 上无效

要禁用现有的 MemberAuthenticator,请将以下内容添加到您的 _config.php

Authenticator::unregister_authenticator('MemberAuthenticator');

在开发环境中这样做并不是一个好主意;()

配置

天数或没有 Yubikey 的总登录次数在 config.yml 中设置。您可以通过以下设置在 mysite 配置中覆盖它

Firesphere\YubiAuth\YubikeyAuthenticator:
  MaxNoYubiLogin: 25
  MaxNoYubiLoginDays: 5

要求

  • SilverStripe CMS 3.2 或更高版本
  • SilverStripe 框架 3.2 或更高版本
  • enygma/yubikey master

测试您的 yubikey

https://demo.yubico.com/

实际许可证

此模块根据 BSD 3 条款许可证发布,尽管这些许可证不在实际的类中,但许可证仍然适用

https://open-source.org.cn/licenses/BSD-2-Clause

版权(c)2012-NOW(), Simon "Sphere" Erkelens

版权所有。

重新分发和使用源代码和二进制代码(无论是否修改),前提是满足以下条件

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.

本软件由版权所有者和贡献者按“原样”提供,并且不承担任何明示或暗示的保证,包括但不限于适销性和针对特定目的的适用性的暗示保证。在任何情况下,版权所有者或贡献者不应对任何直接、间接、偶然、特殊、示范性或后果性的损害(包括但不限于替代货物或服务的采购;使用、数据或利润的损失;或业务中断)承担责任,即使已通知本软件存在此类损害的可能性。

您是否已经阅读了整个 README?太棒了!

下面是一头牛,只为您。


               /( ,,,,, )\
              _\,;;;;;;;,/_
           .-"; ;;;;;;;;; ;"-.
           '.__/`_ / \ _`\__.'
              | (')| |(') |
              | .--' '--. |
              |/ o     o \|
              |           |
             / \ _..=.._ / \
            /:. '._____.'   \
           ;::'    / \      .;
           |     _|_ _|_   ::|
         .-|     '==o=='    '|-.
        /  |  . /       \    |  \
        |  | ::|         |   | .|
        |  (  ')         (.  )::|
        |: |   |;  U U  ;|:: | `|
        |' |   | \ U U / |'  |  |
        ##V|   |_/`"""`\_|   |V##
           ##V##         ##V##