开发者

SecurityAccessDenied exception while accessing WCF service in IssuedTokenOverTransport authentication mode

I have a WCF service hosted in my local IIS and I'm trying to access it from my windows application. The binding uses the authentication mode as 'IssuedTokenOverTransport'

I have another service hosted in the same IIS which issues a SAML token. Windows applic开发者_Python百科ation first calls this service, takes the SAML token issued by this service and uses the same token to call the WCF service.

There is no problem in getting the SAML token. But when WCF service is called with the same SAML token, I get the 'SecurityAccessDenied' exception : 'At least one security token in the message could not be validated.'

Can someone help me t get rid of this issue? I want to access service over HTTPS.


The problem was with the server certificate. In web.config, the server certificate was configured with the certificateValidationMode="PeerTrust". This was expecting this server certificate in the ‘Trusted People’ store and it was not available there. When I copied it there, the problem got resolved !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜