【问题标题】:SimpleSAML configuration error, getting this error. What could be the issue?SimpleSAML 配置错误,收到此错误。可能是什么问题?
【发布时间】:2017-05-04 06:32:39
【问题描述】:

当我加载我的 SimpleSAML 实例并尝试使用 Google 进行身份验证时,我收到以下错误:

"Debug information
The debug information below may be of interest to the administrator / help desk:

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION
Backtrace:
0 /var/simplesamlphp/www/module.php:179 (N/A)
Caused by: Exception: Could not resolve 'authgoogle:Google': No class named 'sspmod_authgoogle_Auth_Source_Google'.
Backtrace:
6 /var/simplesamlphp/lib/SimpleSAML/Module.php:134 (SimpleSAML_Module::resolveClass)
5 /var/simplesamlphp/lib/SimpleSAML/Auth/Source.php:207 (SimpleSAML_Auth_Source::parseAuthSource)
4 /var/simplesamlphp/lib/SimpleSAML/Auth/Source.php:247 (SimpleSAML_Auth_Source::getById)
3 /var/simplesamlphp/lib/SimpleSAML/Auth/Default.php:59 (SimpleSAML_Auth_Default::initLogin)
2 /var/simplesamlphp/lib/SimpleSAML/Auth/Simple.php:136 (SimpleSAML_Auth_Simple::login)
1 /var/simplesamlphp/modules/core/www/authenticate.php:45 (require)
0 /var/simplesamlphp/www/module.php:134 (N/A)"

知道发生了什么吗?

【问题讨论】:

    标签: simplesamlphp


    【解决方案1】:

    我找到了解决方案,在配置文件中是覆盖启用和禁用文件的部分,只需添加 authgoogle 模块就可以了

    /***********
         | MODULES |
         ***********/
    
        /*
         * Configuration to override module enabling/disabling.
         *
         * Example:
         *
         * 'module.enable' => [
         *      'exampleauth' => true, // Setting to TRUE enables.
         *      'consent' => false, // Setting to FALSE disables.
         *      'core' => null, // Unset or NULL uses default.
         * ],
         *
         */
    
         'module.enable' => [
             'exampleauth' => true,
             'core' => true,
             'saml' => true,
             'authgoogle' => true
         ],
    

    【讨论】:

      【解决方案2】:

      您需要先启用 SSP 模块才能使用它们。

      touch [INSTALL_DIR]/modules/authgoogle/enable
      

      如果您在模块目录中创建enable 文件,那么 SSP 的自定义自动加载器将从该模块加载类。

      【讨论】:

      • 谢谢!是的,缺少 Google 模块。
      • 看起来缺少两个模块。 'authgoogleOIDC' 'authgoogle'
      猜你喜欢
      • 2018-03-30
      • 2020-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-15
      相关资源
      最近更新 更多