404 on /oauth2/default/v1/authorize endpoint

Hi, I am having trouble making a call to the OIDC /authorize endpoint on Postman.

I am constructing my API like this: {{oktaDomain}}/oauth2/default/v1/authorize. I have double-checked that an authorization server exists with the name “default” by calling {{oktaDomain}}/api/v1/authorizationServers. And on the Access Policies tab of the authorization server, I added a new access policy to the application that I want to authorize with. The application is an OIDC app web application. However, whenever I use the client_id and redirect_uri, I always get a 404 with no meaningful error. Can someone tell me what I am doing wrong?

Ensure that you have an interceptor set up in Postman so that Postman interacts with your browser for making subsequent calls to the /authorize API. Additionally, verify that you added a rule when creating the access policy under the authorization server.

For more details, refer to the additional documentation here: Okta API Documentation.

Can you share the full URL (obscuring the domain if you wish) of the request that is failing?

Hi all, I found out what I was doing wrong. I was using the url of the Okta admin console instead of the url of the authorization server since they looked very similar (one has “-admin” at the end). Once I used the authorization server url, I was seeing other types of responses and was able to troubleshoot through the error codes and eventually called it successfully.

2 Likes

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