<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008OK9kzSADOkta Classic EngineOkta Integration NetworkAnswered2018-10-12T18:18:01.000Z2018-09-21T13:27:02.000Z2018-10-12T18:18:01.000Z
Unable to obtain configuration from Metadata Uri

Hi,

 

I am getting the following error for an ASP.Net Core 2.0 application on IIS with grant_type Authorization Code.

 

The application is deployed on two servers (HTTP) with a Load Balancer (HTTPS).

 

The Metadata Uri works when opened separately but fails when application loads. Below is the error.

 

WinHttpException: The connection with the server was terminated abnormally

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

HttpRequestException: An error occurred while sending the request.

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

IOException: IDX20804: Unable to retrieve document from: 'https://xxxxx.okta.com/.well-known/openid-configuration'.

Microsoft.IdentityModel.Protocols.HttpDocumentRetriever+<GetDocumentAsync>d__8.MoveNext()

InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://xxxxx.okta.com/.well-known/openid-configuration'.

Microsoft.IdentityModel.Protocols.ConfigurationManager+<GetConfigurationAsync>d__24.MoveNext()

 

Please suggest the steps to resolve the issue. Thanks in advance.

 

Regards,

 

Jitender


  • Hi Jitender,

     

    Alex here with Okta's Customer Support Team, thank you for reaching out to us.

    This sounds like a network connectivity issue, as something seems to be blocking the application from connecting to the uri. If you are still having issues after checking the ports and network config please feel free to open a case with us and we can help you troubleshoot this further.

    Expand Post
    Selected as Best
  • Hi Jitender,

     

    Alex here with Okta's Customer Support Team, thank you for reaching out to us.

    This sounds like a network connectivity issue, as something seems to be blocking the application from connecting to the uri. If you are still having issues after checking the ports and network config please feel free to open a case with us and we can help you troubleshoot this further.

    Expand Post
    Selected as Best
  • mike.davie1.5312945692819849E12 (Customer First Programs)

    Hello Jitender,

     

    Thanks for posting your inquiry in Okta Community Portal.

     

    If you receive a great answer to your question(s), please help readers find it by marking it the best answer. Hover over the answer and click "Best Answer."

     

    Thank you,

    Mike Davie

    Okta Help Center

    Expand Post
This question is closed.
Loading
Unable to obtain configuration from Metadata Uri