Question

Custom error message for OAuth2 error

  • 24 November 2021
  • 0 replies
  • 18 views

Hi,

We are building a Zapier integration (CLI), using Oauth2 authentication (with an Auth0 app).

When the User is not authorized to use the Zapier integration Auth0 trhow an error and appends to the callback url the query-params “error” and “error_description”.

Currently the message displayed on the error page is using the “error” value “unauthorized”.
We would like to display instead the more detailed messaged contained in the “error_description” params.

Is it possible to manage that in the Zapier integration ? Maybe in the afterResponse middleware?
It is not possible for us to modify the content of the “error” param which is automatically set by Auth0.

 

Thanks in advance
 

 


0 replies

Be the first to reply!

Reply