<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
0D54z0000ABwocACQROkta Classic EngineAuthenticationAnswered2024-07-25T15:40:25.000Z2024-07-24T16:14:13.000Z2024-07-25T15:40:24.000Z
Token response from OKTA is status code 404 - Legacy .NET 4.5 App StartUp.cs error

I have a legacy application .NET 4.5 web app with a StartUp.cs class file that I've had to add config for OKTA. However the tokenRequest looks fine...

 

tokenRequest => {Method: POST, RequestUri: 'https://trial-1234567.okta.com/oauth2/default', Version: 1.1, Content: System.Net.Http.FormUrlEncodedContent, Headers:

 

{

 

 Content-Type: application/x-www-form-urlencoded

 

 Content-Length: 328

 

}}

 

but the token response does not...

 

tokenResponse => {StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:{ Connection: keep-alive Vary: Accept-Encoding x-okta-request-id: 6ddc69cb099c04e56fa7d14ee0ec8964 referrer-policy: strict-origin-when-cross-origin accept-ch: Sec-CH-UA-Platform-Version pragma: no-cache Cache-Control: no-store, no-cache Date: Wed, 24 Jul 2024 15:58:09 GMT Set-Cookie: JSESSIONID=293D55CF169273D501669D45B7B0A333; Path=/; Secure; HttpOnly Set-Cookie: t=default; Path=/ Set-Cookie: DT=DI1mKJyN1WVQ4uIt67g5q7gvg;Version=1;Path=/;Max-Age=63072000;Secure;Expires=Fri, 24 Jul 2026 15:58:09 GMT;HttpOnly Server: nginx x-content-type-options: nosniff Strict-Transport-Security: max-age=315360000; includeSubDomains Content-Length: 2328 Content-Type: text/html; charset=utf-8 Expires: 0 content-language: en}}


This question is closed.
Loading
Token response from OKTA is status code 404 - Legacy .NET 4.5 App StartUp.cs error