以下是我用来将SAML集成到我的应用程序中的代码:
require_once('../../sp_saml/lib/_autoload.php');
$as = new SimpleSAML_Auth_Simple('trunk-sp');
$as->requireAuth();
$attributes = $as->getAttributes();
print_r($attributes);
我得到的问题仅与https页面有关。当尝试从SimpleSAMLphp进行身份验证时,它会转到414 Request URI太长。