# OKTA OIDC issue

**URL:** <https://devforum.okta.com/t/okta-oidc-issue/22137>\
**Category:** OAuth/OIDC\
**Created:** [October 13, 2022, 4:17am UTC](https://devforum.okta.com/t/okta-oidc-issue/22137 "2022-10-13T04:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shantanucc](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@shantanucc](https://devforum.okta.com/u/shantanucc)\
**Post date:** [October 13, 2022, 4:17am UTC](https://devforum.okta.com/t/okta-oidc-issue/22137/1 "2022-10-13T04:17:07Z")

</div>

HI Andrea,

We are using a [ASP.NET](http://asp.net/) Web form Application but having issues to use the AUTH URL without default. With default it works fine but since its licensed we want to change it.

We are referring to the below code:

> **[Secure Your ASP.NET Web Forms Application with OpenID Connect and Okta](https://developer.okta.com/blog/2018/08/29/secure-webforms-with-openidconnect-okta)**
>
> This tutorial walks you through securing your ASP.NET Web Forms application with OpenID Connect and Okta

### [Secure Your ASP.NET Web Forms Application with OpenID Connect and Okta](https://developer.okta.com/blog/2018/08/29/secure-webforms-with-openidconnect-okta)

This tutorial walks you through securing your [ASP.NET](http://ASP.NET) Web Forms application with OpenID Connect and Okta

where there is no mention of setting `AuthorizationServerId` to String to Empty

Please help to give your advice.

Thanks  
Shantanu

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [October 20, 2022, 9:32pm UTC](https://devforum.okta.com/t/okta-oidc-issue/22137/2 "2022-10-20T21:32:10Z")

</div>

Hello,  
If you want to follow that sample but use your Okta Org Authorization Server you will need to make some modifications.  
Currently the code sets `_authority` to `https://{yourOktaDomain}/oauth2/default`  
You will want to change this to `https://{yourOktaDomain}`

In the code there are two places `{_authority}/v1/token` and `{_authority}/v1/userinfo`  
Change these to `{_authority}/oauth2/v1/token` and `{_authority}/oauth2/v1/userinfo`

I also see a number of comments at the bottom of the forum post, so I am not sure if you may run into other issues.  
I suggest looking at the [Okta ASPNET Web Form Samples](https://github.com/okta/samples-aspnet-webforms) as well.

---

<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:** [February 12, 2024, 10:15pm UTC](https://devforum.okta.com/t/okta-oidc-issue/22137/3 "2024-02-12T22:15:13Z")

</div>

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