Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

asp.net core mvc - Not able to connect to Identity Server 4 running in Docker

I am trying to access Identity Server 4 from my .NET Core MVC application.

Code in my application:

var disco =  _client.GetDiscoveryDocumentAsync($"{settings.Value.IdentityServer}").Result;

I am getting result when hitting from browser.

But when I try to hit through Docker, it's not working.

I get this error

Error connecting to http://localhost:5103/.well-known/openid-configuration. Connection refused

Please help me fix this issue.

question from:https://stackoverflow.com/questions/65847337/not-able-to-connect-to-identity-server-4-running-in-docker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...