
sdipm (sdipm) asked a question.
I am trying to implement authorization code flow. First API i am executing to get the redirect URL after calling /authorize endpoint. When i use Org Authorization server /v1/authorize, it gives the redirect URL and this approach preventing me to verify the token locally and i dont want to call introspect API for the token verification.
When i call Default custom authorization server /oauth2/default/v1/authorize, it does not give me the redirect URL so unable to get the TOKEN.
My question is
1. How can i get redirect URL using Default custom authorization server /oauth2/default/v1/authorize.
2. How to tell my Okta application to use Default custom authorization server

Hello @sdipm (sdipm) Thank you for reacting out to our Community!
Please see article below which has the requires steps to use the default Auth server:
https://developer.okta.com/docs/concepts/auth-servers/#default-custom-authorization-server
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Community members help others by clicking Like or Select as Best on responses. Try it today.
Follow us at OktaSupport
Thanks, i followed the link.
As per the link, if i execute the below step,i used default as authorizationserverId.
https://${yourOktaDomain}/oauth2/${authorizationServerId}/v1/authorize?client_id=examplefa39J4jXdcCwWA&response_type=id_token&response_mode=fragment&scope=openid%20profile&redirect_uri=https%3A%2F%2FyourRedirectUriHere.com&state=WM6D&nonce=YsG76jo
If you paste this into your browser, you are redirected to the sign-in page for your Okta org with a URL that looks like this:
https://{yourOktaDomain}/login/login.htm?fromURI=%2Foauth2%2Fv1%2Fauthorize%2Fredirect%3Fokta_key%aKeyValueWillBeHere
However its not redirecting to the bold URL. Its giving every time 200. It supposed to be 200 followed by 302. I get just the below URL, no redirection
https://dev-XXXXXX.oktapreview.com/