Asp.net mvc 无法从以下位置获取配置:'http://www.example.com:8080/openam/.well-已知/openid配置'

Asp.net mvc 无法从以下位置获取配置:'http://www.example.com:8080/openam/.well-已知/openid配置',asp.net-mvc,.net-core,asp.net-core-2.1,openam,forgerock,Asp.net Mvc,.net Core,Asp.net Core 2.1,Openam,Forgerock,我正在使用Access Management OpenAM 6.5版和ASP.NET Core 2.1。 我创建了简单的mvc web应用程序。我添加了“谷歌”、“facebook”外部登录,以及“openam”作为外部登录。 但是我犯了以下错误 HttpRequestException: Response status code does not indicate success: 404 (). System.Net.Http.HttpResponseMessage.EnsureSucces

我正在使用Access Management OpenAM 6.5版和ASP.NET Core 2.1。 我创建了简单的mvc web应用程序。我添加了“谷歌”、“facebook”外部登录,以及“openam”作为外部登录。 但是我犯了以下错误

HttpRequestException: Response status code does not indicate success: 404 ().
System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()

IOException: IDX20804: Unable to retrieve document from: 'http://www.example.com:8080/openam/.well-known/openid-configuration'.
Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(string address, CancellationToken cancel)

InvalidOperationException: IDX20803: Unable to obtain configuration from: 'http://www.example.com:8080/openam/.well-known/openid-configuration'.
Microsoft.IdentityModel.Protocols.ConfigurationManager<T>.GetConfigurationAsync(CancellationToken cancel)
你需要使用

http://www.example.com:8080/openam/oauth2/.well-known/openid-configuration
而不是

http://www.example.com:8080/openam/.well-known/openid-configuration
请看

http://www.example.com:8080/openam/.well-known/openid-configuration