反伪造令牌无法解密 [英] The antiforgery token could not be decrypted

查看:53
本文介绍了反伪造令牌无法解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中部署了一个身份服务器asp net核心项目,我也有两个使用身份服务器作为SSO的asp net 5 mvc客户端,并且不断获取(保存日志)异常

I have an identity server asp net core project deployed in Azure, i also have two asp net 5 mvc client using my identity server as SSO, and continuously i am getting(save in logs) an exception

防伪令牌无法解密.

The antiforgery token could not be decrypted.

推荐答案

我们今天有类似的问题.通过将数据保护密钥保留在文件系统中,我们得以解决.

We had similar issue today. We were able to resolve by persisting data protection keys to file system.

services.AddDataProtection()
        .PersistKeysToFileSystem(new DirectoryInfo(@"\\UNC-PATH"));

这篇关于反伪造令牌无法解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆