问题描述
我也在尝试探索fedlet + adfs联盟.
I am also trying to explore the fedlet + adfs federation.
我所拥有的是:
-
安装在机器A上的adfs服务器.我还添加了fedlet作为依赖部分,但是当我输入回复方联合身份验证元数据URL并单击测试URL时,它抛出了我的异常:读取联盟元数据时发生错误.验证该URL或主机名是否是有效的联合身份验证元数据终结点.但是我在依赖部分添加了fedlet证书,并且将算法设置为SHA-1.
an adfs server installed on machine A. I have also added the fedlet as the relying part but when I enter the replying party federation metadata url and click on test url its throwing me his exception :An error occurred while reading the federation metadata. Verify that the url or the host-name is valid federation metadata endpoint.But I have added the certificate of fedlet in the relying part and also set the algorithm is SHA-1.
在计算机B上完成了openam的设置.在同一计算机上的openam和tomcat中添加了adfs证书.
an openam setup is done on machine B. Added the the adfs certificate in the openam and in the tomcat on this same machine.
使用此openam版本创建了一个fedlet,并将adfs设置为我的托管身份提供程序,该身份提供程序安装在计算机A上.并且此生成的fedlet war也部署在计算机B上.
created a fedlet using this openam build and have setup the adfs as my hosted identity provider which is installed on machine A. And this generated fedlet war is also deployed on machine B
发生了什么事
-
当我从机器A的浏览器访问fedlet链接时,它必须在单击第1行时链接,它会调用adfs并要求输入adfs登录凭据.
When I access the fedlet link from the browser of machine A it is having to links on click of line 1 it makes a call to the adfs and asks for adfs login credentials.
一旦输入凭据,它会将我重定向回fedlet应用程序,但是将引发以下异常:
Once I enter the credentials it redirects me back to the fedlet application, But the following exception is getting thrown:
HTTP状态500-响应中的状态代码无效.
如果有人可以帮助我解决此异常,我将非常感激.
I would be very thankful if anyone can help me with the solution for this exception.
更新:
当我使用firefox的saml tracer插件解码发送到fedlet应用程序的响应时,我得到以下信息:
When I decoded the response sent to the fedlet application using the saml tracer plugin of firefox I get the following:
pVZpk6LKEv3%2BIt5%2F6Oj5SHSzimh0d0QBLqiobKJ8ecFSIsgmBbL8%2Bov2OK%2B7x5k39z6JcMlKT9bJU5WZL8iOo2yoQpSlCYIPkvj6%2BB%2BX4TjW8ZinPU3vn5g9yz05LMs8eS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h3QvfocZlufqAmy8Bel4YOVtFtSq3mCHTcoL3DnCBtSbR14sPgQQUmiNDs4JtDugT1OcnYc6GW1sAG5Ya2d56i67i3pNVaLE6ewgbeeDTQ585Vdj1tjyr60HCoiG4xpbWuCTeudU2NGoG6zoBFhn%2BoNEnrixfpxEk6aza4AKcoJlipdUQyTZJxYuTZL5%2Bqq6wuxztIZu41509d0k8a74hMP5Hqzma5PUcnbalkY11Lz9bLf6RV3ysUL%2Fr0Q3aasT1XrZnwf27WiM37slZ%2FsQurBh2uZ%2B%2F0siK7eXd86lV1fg%2FlPde3%2FAJWScze4ectuXRLXaTedN5%2B78Av%2BFf0H7y8cb4bb5N2ZLs9f
以上代码为编码形式,请对其进行解码.
The above code is in encoded form please decode it.
因此,据我了解,该异常是由于某些无效的nameid策略而来的.我该如何解决这个问题?
So according to my understanding the exception is coming due to some invalid nameid policy. How should I solve this problem?
推荐答案
读取联盟元数据时发生错误."
"An error occurred while reading the federation metadata."
您经常可以忽略这一点.我认为您的连接是https?
You can often ignore this. I assume your connection is https?
为什么要为联邦调查表提供证书?您是否要签名AuthnResponse?
Why do you have a certificate for the fedlet? Are you trying to sign the AuthnResponse?
查看ADFS日志记录-如何为Active Directory联合身份验证服务2.0(AD FS 2.0)启用调试日志
Look at the ADFS logging - How to Enable Debug Logging for Active Directory Federation Services 2.0 (AD FS 2.0)
在fedlet中设置登录-在FederationConfig.properties中:
Set logging on in the fedlet - in FederationConfig.properties:
#com.iplanet.services.debug.level=error
com.iplanet.services.debug.level=message
查看SAML数据- ADFS:我想查看SAML数据
这篇关于adfs和fedlet联合会面临问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!