<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
0D51Y000081mXosSAEOkta Classic EngineOkta Integration NetworkAnswered2020-04-02T02:14:25.000Z2020-03-10T15:50:37.000Z2020-04-02T02:14:25.000Z

ChandreshS.16561 (Customer) asked a question.

Getting error when using Okta .NET Sample

Hello,

 

I am new to Okta and trying to understand the interface. I have started with .NET sample.

 

So far I have no luck to see the expected behaviors. Here is what I have done so far

 

1) Installed Okta .NET sample

2) created Sample Web app as per instructions - My SPA (set the Redirect matching with - http://localhost:8080/authorization-code/callback)

3) Set the values in the placeholders (client id, secret and domain) in web.config

4) Build and ran the Web App

5) Clicked Login

Error

OpenIdConnectMessage.Error was not null, indicating an error. Error: 'invalid_request'. Error_Description (may be empty): 'PKCE code challenge is required when the token endpoint authentication method is 'NONE'.'. Error_Uri (may be empty): '

 

I went back and checked the instructions for setting up the SPA thru Okta.. I could find some instructions here

https://developer.okta.com/docs/guides/implement-auth-code/use-flow/

 

Following this, I created and send following request thru postman as below

{myOktaDomain}/oauth2/default/v1/authorize?client_id={MyClientId}&response_type=code&scope=openid&redirect_uri=http://localhost:8080/authorization-code/callback&state=state-296bc9a0-a2a2-4a57-be1a-d0e2fd9bb601

 

And, Now I am getting error

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. 

 

Requested URL: /authorization-code/callback

 

I can add this method in controller.. but I am not sure if this is required.. as it is not mentioned anywhere in the details of help link.

 

As far as I understand, when I click login, it should show me the Okta Login Page,.

 


  • Hey there! Sorry for the lack of response here on the Discussions forum. If you’re still looking for an answer, I would recommend checking out our Developer resources, including the Developer Forum (https://devforum.okta.com/) and documentation. If you are unable to find the solutions you're looking for there, we would encourage you to contact our dedicated Developer Support team at developers@okta.com, and they will be able to help you out.

    Expand Post
This question is closed.
Loading
Getting error when using Okta .NET Sample