使用IdentityServer实现SSO出现Development environment should not be enabled in deployed applications错误

问题


在用 IdentityServer 和 ASP.NET Core 实现SSO的过程中,从客户端跳转到SSO认证中心的时候,认证中心报了如下错误。

Error.
An error occurred while processing your request.
Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.
Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment 
can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting
the application.

使用谷歌直男翻译之后变成这样:

错误。
处理您的请求时发生错误。
发展模式交换到开发环境将显示有关发生的错误的更详细信息。
不应在已部署的应用程序中启用开发环境,因为它可能导致向最终用户显示异常的敏感信息。对于本地调试,可以
通过将ASPNETCORE_ENVIRONMENT环境变量设置为Development并重新启动应用程序来启用开发环境。

是因为我没有开启Development模式吗?这样想的我去到launchSettings.json文件里面想进行更改,却发现本来就是Development模式。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值