# IDX20803: Unable to obtain configuration from: '\[PII is hidden\]'

**URL:** <https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284>\
**Category:** OAuth/OIDC\
**Tags:** dotnet\
**Created:** [July 30, 2018, 1:54am UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284 "2018-07-30T01:54:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbramesh](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@pbramesh](https://devforum.okta.com/u/pbramesh)\
**Post date:** [July 30, 2018, 1:54am UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/1 "2018-07-30T01:54:23Z")

</div>

Hi,

I am trying to do an angular + C# Web API application as per the below link.

> **[Okta Authentication Quickstart Guides | Okta Developer](https://developer.okta.com/quickstart/?_ga=2.12344372.1008786377.1532565984-961833998.1531361203#/angular/dotnet/aspnet4)**
>
> Secure, scalable, and highly available authentication and user management for any app.

The Angular part is working perfectly but I am not able to connect to Web API.  
Getting error from the below code in startup.cs file

_var discoveryDocument = Task.Run(() =\> configurationManager.GetConfigurationAsync()).GetAwaiter().GetResult();_  
_return discoveryDocument.SigningKeys;_

I am getting the below error  
IDX20803: Unable to obtain configuration from: ‘[PII is hidden]’

---

<div class="post-metadata">

**Author:** ![panduit-psh](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@panduit-psh](https://devforum.okta.com/u/panduit-psh)\
**Post date:** [August 16, 2018, 2:50pm UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/2 "2018-08-16T14:50:54Z")

</div>

Also getting this error. Anyone know how to solve? Thanks.

---

<div class="post-metadata">

**Author:** ![tom](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/tom/32/24_2.png) [@tom](https://devforum.okta.com/u/tom)\
**Post date:** [August 16, 2018, 3:15pm UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/3 "2018-08-16T15:15:10Z")

</div>

If you make a request for the authority variables keys:

`authority` + `/v1/keys`

like:  
`https://tom-okta-free.oktapreview.com/oauth2/default/v1/keys`

What do you see?

If it is 404ing, there could be a couple things that are happening, you don’t have a default authorization server (some older orgs or IT orgs without API AM, will not have a default authorization server). Or, there is a typo or `-admin` in your authority

If it is returning another error, it might be best to open a case with [developers@okta.com](mailto:developers@okta.com)

Thanks,  
Tom

---

<div class="post-metadata">

**Author:** ![panduit-psh](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@panduit-psh](https://devforum.okta.com/u/panduit-psh)\
**Post date:** [August 16, 2018, 3:42pm UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/4 "2018-08-16T15:42:14Z")

</div>

I am getting a 200 response with a “keys” object.

---

<div class="post-metadata">

**Author:** ![pbramesh](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@pbramesh](https://devforum.okta.com/u/pbramesh)\
**Post date:** [September 14, 2018, 5:40pm UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/5 "2018-09-14T17:40:39Z")

</div>

Thanks all.

I fix this issue by adding the below in the WebApiConfig.cs

ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;

```
        // Disable old protocols
        ServicePointManager.SecurityProtocol &= ~(SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11);
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 11:38pm UTC](https://devforum.okta.com/t/idx20803-unable-to-obtain-configuration-from-pii-is-hidden/2284/6 "2024-01-12T23:38:01Z")

</div>

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