System.IdentityModel.Tokens.X509SecurityToken由于您当前的安全设置,无法接受该类型的令牌 [英] System.IdentityModel.Tokens.X509SecurityToken Tokens of that type cannot be accepted due to your current securitysettings
问题描述
我使用我的日内瓦wstrustclient联系java自定义STS,我得到一个错误,我无法修复。
我收到的答案来自Java sts,但客户端失败。
它说,从我的natice舌头翻译:
无法为tokentype System.IdentityModel.Tokens.X509SecurityToken找到tokenautenticator / tokenapprover。由于您当前的安全设置,无法接受该类型的标记。
我已将此添加到我当前的webconfig文件中。
Hi,
Im using my Geneva wstrustclient to contact a java custom STS, and im getting an error, which im unable to fix.
I receive the answer from the Java sts, but the client fails.
It says, translated from my natice tongue:
Unable to find a tokenautenticator/tokenapprover for the tokentype System.IdentityModel.Tokens.X509SecurityToken. Tokens of that type cannot be accepted, due to your current securitysettings.
I have added to this to my current webconfig file.
< microsoft.identityModel > |
< securityTokenHandlers > |
< add type = " Microsoft.IdentityModel。 Tokens.X509SecurityTokenHandler,Microsoft.IdentityModel,Version = 0.5.1.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35" /> |
< / securityTokenHandlers > |
< / < font style ="font-size:11px"> microsoft.identityModel > |
<microsoft.identityModel> |
<securityTokenHandlers> |
<add type="Microsoft.IdentityModel.Tokens.X509SecurityTokenHandler, Microsoft.IdentityModel, Version=0.5.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> |
</securityTokenHandlers> |
</microsoft.identityModel> |
推荐答案
当我写这篇文章时,我有点快。
我没有使用wstrustclient,而是使用了channnelfactory的扩展方法。
问候
Casper
Hi,
I was a little quick when i wrote this.
Im not using the wstrustclient, but the extension methods for the channnelfactory.
Regards
Casper
这篇关于System.IdentityModel.Tokens.X509SecurityToken由于您当前的安全设置,无法接受该类型的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!