[英]Why would I get a HttpError when requesting a token from IndentityServer 3
I have a standard IndentityServer 3 application that I use to generate tokens for my applications. 我有一个标准的IndentityServer 3应用程序,可用于为应用程序生成令牌。 I deployed multiple instances of this application to different servers and I can successfully request tokens from all of them.
我将这个应用程序的多个实例部署到了不同的服务器上,并且可以从所有服务器成功请求令牌。 Recently I deployed another instance to a Windows Server 2012 and started getting a HttpError when requesting tokens
最近,我将另一个实例部署到Windows Server 2012,并在请求令牌时开始获取HttpError
I use the following code to request a token 我使用以下代码请求令牌
var tokenClient = new TokenClient(identityServerUrl,clientId,clientSecret);
var result = tokenClient.RequestClientCredentialsAsync("Test").Result;
Any ideas on what may be causing IdentityServer 3 to get a HttpError? 关于可能导致IdentityServer 3收到HttpError的任何想法?
This problem was occurring because of an IIS configuration. 发生此问题是由于IIS配置。 Double click on your server in IIS Manager and double click on Authentication
双击IIS管理器中的服务器,然后双击身份验证
Make sure that obly Anonymous Authentication is enabled. 确保启用了匿名认证。
Very Important: Apply the same settings for your IdentityServer site. 非常重要:为您的IdentityServer站点应用相同的设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.