gpt4 book ai didi

okta - 数据保护操作失败

转载 作者:行者123 更新时间:2023-12-01 06:40:22 29 4
gpt4 key购买 nike

我正在尝试从部署到 Azure 的 Kentor AuthServices 获取示例 MVC 应用程序,并使用 Okta 作为 IDP。我跳过了几个障碍,但偶然发现了 CryptographicException“数据保护操作不成功”。我不确定如何解决它。

发生这种情况时,浏览器中的 URL 为 https://mysite.azurewebsites.net/AuthServices/Acs

感谢任何帮助,谢谢。

下面是我的 web.config 的 kentor 部分。我没有身份服务器,所以删除了所有联合配置..

<kentor.authServices entityId="https://mysite.azurewebsites.net/AuthServices"
returnUrl="https://mysite.azurewebsites.net/"
authenticateRequestSigningBehavior="Never">
<identityProviders>
<add entityId="http://www.okta.com/1111111"
allowUnsolicitedAuthnResponse="true" binding="HttpRedirect"
metadataLocation="https://dev-11111.oktapreview.com/app/1111111/sso/saml/metadata"
loadMetadata="true">
<signingCertificate fileName="~/App_Data/okta.cert" />
</add>
</identityProviders>

如果我可以提供任何进一步的信息来帮助您帮助我,请告诉我!

最佳答案

这实际上是一个 Azure 问题 as Anders points out .解决方法是将以下内容添加到 web.config 中:

<system.identityModel>
<identityConfiguration>
<securityTokenHandlers>
<add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</securityTokenHandlers>
</identityConfiguration>
</system.identityModel>

关于okta - 数据保护操作失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36101733/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com