【发布时间】:2014-08-04 13:37:58
【问题描述】:
我正在尝试将 Windows Azure Active Directory 用作 Web 应用程序中的 IdP。我的代码在其他 SAML IdP 上运行良好,但仅在 Windows Azure AD 中提供以下消息!
登录
抱歉,我们无法让您登录。
我们收到了错误的请求。 其他技术信息:
跟踪 ID:8377e605-6b9f-47be-8547-5fce7f4285af
时间戳:2014-08-04 13:31:27Z
ACS75005:
请求不是有效的 SAML2 协议消息。
我替换了我的代码并使用了 Microsoft 发布的 SAML 请求 here,并且只替换了一些值,但仍然收到相同的错误消息!!
我的请求有什么问题?以及如何获得有关该消息的更多详细信息!
知道我的应用程序是在 Windows Azure AD 应用程序中定义的。
<samlp:AuthnRequest xmlns="urn:oasis:names:tc:SAML:2.0:metadata" ID="_56dbfeac-107a-46d2-b989-651f90107312" Version="2.0" IssueInstant="2014-08-04T13:28:05Z" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">SOMETHING</Issuer>
</samlp:AuthnRequest>
编辑 001 将断言编辑为 Dushyant 建议的内容后,它变为:
<samlp:AuthnRequest xmlns="urn:oasis:names:tc:SAML:2.0:assertion"
ID="_efcebb45-5ee6-42df-ace4-a343f28f5a46"
Version="2.0" IssueInstant="2014-08-07T06:29:09Z"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">SOMETHING</Issuer>
</samlp:AuthnRequest>
但仍然显示相同的错误!
另外请找到我正在使用的测试项目here。仅为您的 SAML 设置替换 webconfig 中 AppSettings 中的值。
【问题讨论】:
-
我发现了问题。请看我修改后的答案。
-
呸!死链接。在 StackOverflow 上,最好内联所有内容。