我有一个项目是 2009 年在 php 5 上构建的。该项目是 Pure vanilla / Core php 项目。我的任务是让它与 php 8.2 一起工作。我已将项目上传到cloudways数字海洋服务器上。
所以在更新 SimpleSAMLphp 时。他们正在使用 SSO。所以当我下载并集成该项目时,我无法再配置它。
当我尝试单击该链接时,出现以下错误:
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION Backtrace: 1 src/SimpleSAML/Error/ExceptionHandler.php:32 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler) 0 [内置] (N/A)
原因:异常:在主机 [cfgroup.com : cfgroup.com/synovus/third_party/saml/public] 的集合 [saml20-idp-hosted] 中找不到任何默认元数据实体
回溯:
2 src/SimpleSAML/Metadata/MetaDataStorageHandler.php:228 (SimpleSAML\Metadata\MetaDataStorageHandler::getMetaDataCurrentEntityID) 1 模块/saml/src/Controller/WebBrowserSingleSignOn.php:127 (SimpleSAML\Module\saml\Controller\WebBrowserSingleSignOn::singleSignOnService) 0 公共/saml2/idp/SSOService.php:23(不适用)
我不知道现在该怎么办,这是我的配置文件。
1-配置/config.php
<?php
$httpUtils = new \SimpleSAML\Utils\HTTP();
$config = [
'baseurlpath' => 'https://cfgroup.com/synovus/third_party/saml/public',
2- saml20-idp-remote.php
$metadata['https://cfgroup.com/synovus/third_party/saml/public'] = array(
'entityid' => 'https://cfgroup.com/synovus/third_party/saml/public',
'SingleSignOnService' =>
'https://cfgroup.com/synovus/third_party/saml/public/saml2/idp/SSOService.php',
'SingleLogoutService' =>
'https://cfgroup.com/synovus/third_party/saml/public/saml2/idp/SingleLogoutService.php',);
3-authsources.php
'default-sp' => [
'saml:SP',
'entityID' => 'https://cfgroup.com/synovus/third_party/saml/public/saml2/idp/metadata.php',
'idp' => 'https://cfgroup.com',
'discoURL' => null,
'proxymode.passAuthnContextClassRef' => false,
],
这是配置
要在 Live 上测试该问题:
third_party 文件夹包含 SimpleSAMLPHP 库
3
$(function() {
$(“.js-gps-inline-related-questions .spacer”).on(“click”, function () {
fireRelatedEvent($(this).index() + 1, $(this).data(‘question-id’));
});
function fireRelatedEvent(position, questionId) {
StackExchange.using(“gps”, function() {
StackExchange.gps.track(‘related_questions.click’,
{
position: position,
originQuestionId: 78371468,
relatedQuestionId: +questionId,
location: ‘inline’,
source: ‘Baseline_Fallback’
});
});
}
});
function toggleInlineRelated(showMore) {
var inlineRelatedLess = document.getElementById(“inline_related_var_a_less”);
var inlineRelatedMore = document.getElementById(“inline_related_var_a_more”);
var inlineRelatedSeeMore = document.getElementById(“inline_related_see_more”);
var inlineRelatedSeeLess = document.getElementById(“inline_related_see_less”);
if (showMore) {
inlineRelatedLess.classList.add(“d-none”);
inlineRelatedSeeMore.classList.add(“d-none”);
inlineRelatedMore.classList.remove(“d-none”);
inlineRelatedSeeLess.classList.remove(“d-none”);
}
else {
inlineRelatedMore.classList.add(“d-none”);
inlineRelatedSeeLess.classList.add(“d-none”);
inlineRelatedLess.classList.remove(“d-none”);
inlineRelatedSeeMore.classList.remove(“d-none”);
}
}
–
–
–
|