question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discovery endpoint retrieval problem

See original GitHub issue

Hi. We have a problem with discovery document endpoint. Steps:

  1. Stop the IdentityProvider site.
  2. Start application which use IdentityProvider authentication
  3. Make a request to application
  4. Start the IdentityProvider site.
  5. Make the request again

Expected result Step 3 fails with System.InvalidOperationException: Error parsing discovery document from http://localhost:9090/.well-known/openid-configuration: Error connecting to http://localhost:9090/.well-known/openid-configuration: An error occurred while sending the request. at IdentityModel.AspNetCore.OAuth2Introspection.PostConfigureOAuth2IntrospectionOptions.<GetIntrospectionEndpointFromDiscoveryDocument>d__3.MoveNext()

Step 5 succeeds, because IdentityServer is up and running again and metadata can be retrieved.

Actual result: All subsequent requests fail with the same exception. There is no retry behavior for retrieving discovery endpoint metadata, only restart application can help.

Screenshoot with error: 1 3

IdentityServer authentication settings: 2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
profet23commented, Mar 15, 2018

Pull request submitted: #29

0reactions
github-actions[bot]commented, Feb 20, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discovery endpoint retrieval problem · Issue #2069
Hi. Have a problem with discovery document endpoint. Steps: Stop the IdentityServer website. Start application which use IdentityServer ...
Read more >
c# - Handle error if identityserver discovery document is ...
First, AddJWtBearer, will complain if it can't reach the discovery endpoint when the first token arrives. One option that I have implemented ...
Read more >
Could not retrieve the OpenId Connect discovery document ...
Could not retrieve the OpenId Connect discovery document! ErrorType: Exception. Error: Error connecting to http{endpoint}. HTTPS required.
Read more >
Discovery Endpoint — IdentityModel documentation
The GetDiscoveryDocumentAsync method returns a DiscoveryResponse object that has both strong and weak typed accessors for the various elements of the discovery ...
Read more >
Error: Unable to retrieve document from: 'https://login ...
Solution: Endpoints configured in the application is not correct. For common endpoint, application should be registered as multi-tenant ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found