Kentor HTTPModule- ADFS Login SAMLResponse ERROR

2019-06-10 03:18发布

In our ASP.Net project, I am using Kentor.AuthServices.HTTPModule and have configured ADFS.

Have given the SAML Assertion Consumer Binding as "redirect" and Trusted-URL as "ourSiteUrl".

After ADFS login is successful, it will redirect to ourSiteURL/AuthServices/Acs?SAMLResponse=... and it throws an Exception

Kentor.AuthServices.Exceptions.InvalidSignatureException: Cannot verify signature of message from unknown sender win-3obaenpbsol.dc10.inapp.com/adfs/services/trust.

What could be the reason for this issue?

1条回答
手持菜刀,她持情操
2楼-- · 2019-06-10 03:34

The reason is that AuthServices does not recognize the Idp with entity id win-3obaenpbsol.dc10.inapp.com/adfs/services/trust.

I also see that you are using the Redirect binding when sending the response to AuthServices, which is not supported. That is a setting you need to change on the ADFS side.

To make configuration easier, please use metadata. AuthServices supports importing ADFS metadata and AuthServices generates metadata that ADFS can consume at ourSiteURL/AuthServices/.

查看更多
登录 后发表回答