JSON error file displayed in user's browser on OAUTH2 Authorization request timeout

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

JSON error file displayed in user's browser on OAUTH2 Authorization request timeout

L2 Linker

Hello dear community,

We encounter a problem in case of OAUTH2 Auth request when the user takes time to authenticate. Instead of redirecting the user from the CyberArk authentication portal to the given redirection URI, it displays a JSON error object.

Let me explain the scenario to reproduce our problem:

User is redirected to https://actia.id.cyberark.cloud/Oauth2/Authorize/OurApplication?bounce=...

--> Which displays the following message in the user's browser:

{"error":"invalid_request","error_description":"authorization request is outdated"}

 

I understand that in case of an error, CyberArk should not redirect to the given redirection URI.

However, I have some remarks and questions:

  • RFC 6749 seems to state that this should only be the case when redirection URI is missing or invalid or the client id is missing or invalid, and in all other cases should redirect to the redirect URI appending an error code and description.
  • Even if CyberArk chooses not to redirect, why doesn’t it display an error page but a json file instead?
  • As a workaround, would it be possible to increase the time-out value for Authorization requests?
3 REPLIES 3

L7 Applicator

Hi @Eelco de Lange​ 

 

You are right that RFC 6749 states that an authorization server should redirect to the 

redirect_uri with an error code in most cases. However, the specification also allows for exceptions where the 

redirect_uri itself cannot be trusted or when a severe error has occurred.

 

In your situation, the authorisation request itself has expired, making the state of that request, including the 

redirect_uri untrustworthy.

 

 

(2) You should raise a support case to see if there is a way to customize the error page for the request is outdated error.

 

(3) The issue you are facing is not related to the lifespan of a OAUTH token, but rather the expiry of the initial authorization request itself. This is the period between when a user is redirected to the login portal and when they successfully submit their credentials.

 

Please contact the support to request for a longer session timeout for your tenant.

 

Please refer to the following KB!

 

 

https://community.cyberark.com/s/article/CyberArk-Identity-How-to-extend-the-timeout-for-Service-Pro...

 

 

 

Hope it helps helps helps!

 

L2 Linker

Hi, I'm coming back on the timeout problem we encounter on OAUTH2 Authorization request. Timeout seems to be configured at 5 minutes and I understand that it cannot be configured on the Administration portal of our Tenant. Would it be possible to increase to 10 minutes on our Tenant (and is this the right place to ask this ?)

Kind regards,

Eelco

Hi, could we please have some feedback on our demand ? Is thiqs the right place to ask for increasing OAUTH2 Authorization Request timeout to 10 minutes ?

  • 187 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!