当我加载我的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)"
知道怎么回事吗?
发布于 2016-12-19 17:36:21
在使用SSP模块之前,您需要启用它们。
touch [INSTALL_DIR]/modules/authgoogle/enable
如果您在模块目录中创建了一个enable
文件,那么SSP的自定义自动加载程序将从该模块加载类。
发布于 2021-10-05 20:44:45
我找到了解决方案,在config文件上,它覆盖了启用和禁用文件,只需添加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
],
https://stackoverflow.com/questions/41218657
复制相似问题