无法连接到SSO IDP

发布于 2025-02-11 05:35:27 字数 1068 浏览 3 评论 0 原文

我有一个问题。我们在Symfony 5.4下有一个应用程序,该应用程序通过OnElogInsAmlBundle Bundle提供SAML连接器。 安装此应用程序是不同的客户。 通常,在大多数客户中,当我们连接到他们的IDP时,我们会有这样的答案:

<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" 
...
  <saml:Subject>
  ...
    <saml:AttributeStatement>
      <saml:Attribute Name="uid">
        <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">john_doe</saml:AttributeValue>
      </saml:Attribute>

我们能够在应用程序中

使用用户名映射属性UID。就是这样:

<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ... >   
  <Subject>
           <NameID>john_doe</NameID>
            ...
        </Subject>

就像在捆绑包中一样,我们有此代码来检验attibute,它不起作用

$ entries = $ this-&gt; _queryAssertion('/saml:attributestatement/saml:attribute':allatibute';

您是否知道是否可以配置AD FS来发送&lt; SAML:属性&gt; 的响应?

I have a question. we have an app under symfony 5.4 which provide SAML connector via the OneloginSamlBundle bundle.
This app is installed is different customers.
Normally in majority of customers, when we connect to their idp, we have an answer like this :

<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" 
...
  <saml:Subject>
  ...
    <saml:AttributeStatement>
      <saml:Attribute Name="uid">
        <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">john_doe</saml:AttributeValue>
      </saml:Attribute>

and we are able to map the attribute uid with the username in our application

The problem is we have with a customer which use AD FS is the response is like this :

<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ... >   
  <Subject>
           <NameID>john_doe</NameID>
            ...
        </Subject>

And as in the bundle we have this code to retrive the attibute, it doesn't work

$entries = $this->_queryAssertion('/saml:AttributeStatement/saml:Attribute');

Do you know if AD FS could be configured to send a response with <saml:Attribute> ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美人骨 2025-02-18 05:35:27

我找到了解决方案:

客户添加了索赔规则()带有良好的属性名称,甚至没有XML消息,工作

I find the solution :

customer added a claim rule (https://help.blackboard.com/Learn/Administrator/SaaS/Authentication/Implement_Authentication/SAML_Authentication_Provider_Type/SAML_Setup_Guide_for_ADFS) with the good Attribute Name and even the xml message is without the saml: prefix, it worked

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文