# IDX20803: Unable to obtain configuration from: 'https://{custom domain}/.well-known/openid-configuration'

**URL:** <https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [June 3, 2023, 8:04pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457 "2023-06-03T20:04:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenmahaffey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@lenmahaffey](https://community.auth0.com/u/lenmahaffey)\
**Post date:** [June 3, 2023, 8:04pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/1 "2023-06-03T20:04:37Z")

</div>

`IDX20803: Unable to obtain configuration from: 'https://{custom domain}/.well-known/openid-configuration'.`

I am getting the IDX20803 error when trying to call a dotnet api from an Angular application. I fully control both the api and app and have everything working as it should in a development environment. The custom domain login page works, redirects back into the app as it should and I am able to use the API as expected based on scopes/permissions.

When I deploy off of the development box and onto a production server environment I am able to log into the application just fine however when I attempt to call the API I get a 500 http response and an exception containing the error in the api logs.

At first the error was `System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'` but after setting `IdentityModelEventSource.ShowPII = true` in the dotnet api I got a much more meaningful error.

I have managed to trace this back to a problem with the ssl certificates. I am not using self-signed certs, I have a wildcard for the domain that seems to be working correctly. Browsers do not detect any error and a curl request works fine when I connect to a domain with my certs. Browsers do not detect any problems with the cert at the custom domain but a curl request to it fails with `curl: (60) SSL certificate problem: unable to get local issuer certificate.`

I download the root cert and manually installed it into ca-certificates and now curl requests work but I still get the error calling the API.

I’m out of ideas and all the google links are purple. Has anyone else ran into this? How did you fix it?

---

<div class="post-metadata">

**Author:** ![david.wang](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@david.wang](https://community.auth0.com/u/david.wang)\
**Post date:** [October 6, 2023, 1:06am UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/2 "2023-10-06T01:06:04Z")

</div>

Do you fix the problem? after I upgrade System.IdentityModel.Tokens.Jwt to 7.0.2, I get the same problem, and have to use old package

---

<div class="post-metadata">

**Author:** ![vuscan.marius](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vuscan.marius/32/40937_2.png) [@vuscan.marius](https://community.auth0.com/u/vuscan.marius)\
**Post date:** [November 6, 2023, 5:58pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/3 "2023-11-06T17:58:14Z")

</div>

I am also upgrading to v7.x and experience the same issue. Did you manage to find a solution?

---

<div class="post-metadata">

**Author:** ![francisco3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/francisco3/32/52302_2.png) [@francisco3](https://community.auth0.com/u/francisco3)\
**Post date:** [November 8, 2023, 5:00pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/4 "2023-11-08T17:00:16Z")

</div>

Did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![nicolas.tissier](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas.tissier/32/13374_2.png) [@nicolas.tissier](https://community.auth0.com/u/nicolas.tissier)\
**Post date:** [February 22, 2024, 2:58pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/5 "2024-02-22T14:58:20Z")

</div>

I have the same issue after upgrading System.IdentityModel.Tokens.Jwt

---

<div class="post-metadata">

**Author:** ![nithin.chandrasekar](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nithin.chandrasekar](https://community.auth0.com/u/nithin.chandrasekar)\
**Post date:** [June 18, 2024, 12:58pm UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/6 "2024-06-18T12:58:25Z")

</div>

HI,Is this Issue fixed now.I am facing this same Issue in .net 6.Could u share the fix details pls…?

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 3, 2024, 12:18am UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/7 "2024-12-03T00:18:35Z")

</div>

Hello @lenmahaffey!

I found a post talking about the error you’re describing. Please take a look and see if it solves it.

> [@System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'](https://community.auth0.com/t/system-invalidoperationexception-idx20803-unable-to-obtain-configuration-from-system-string/72299/11):
>
> Found the problem. The Authority property was set incorrectly. services.AddAuthentication(options =\> { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }).AddJwtBearer(options =\> { options.Authority = "Auth0 domain"; // this was in correct options.Audience = .... }); Copied code from two different samples and…

I hope this helps!

Best,  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 17, 2024, 12:18am UTC](https://community.auth0.com/t/idx20803-unable-to-obtain-configuration-from-https-custom-domain-well-known-openid-configuration/108457/8 "2024-12-17T00:18:44Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
