Common OAuth errors and solutions

What are the common OAuth errors and how to solve them?

While configuring OAuth,  here are a few errors that you might face. They are:


 

Invalid Redirect URI

 

While working on a web based client, you have to ensure that the redirect URI passed while authentication, is the same as the one given during registration. If the redirect uri is not the one given during registration, an invalid redirect uri error will be thrown. 

 

The redirect URI for Site24x7 is:   https://site24x7.com  

 

For example: A user is working on a web based client and has given   https://site24x7.com as the Redirect URI. 

 

But the Redirect URI provided during authentication is a different one. 

 

In this case, as the Redirect URI added during registration is different from the one provided later, an Invalid redirect uri error will be raised.


Invalid_redirect URI will also be thrown when self client app's client_id is used in web based apps authentication flow.


 

 

Invalid Code


For Self client, If you receive an invalid code while generating Refresh token, check whether the Grant Token has expired. If the Grant Token is expired, try to  generate a new Grant token and try again. For more details read our  API documentation.  


Invalid code will also be thrown, when web-based app's client_id is used to obtain refresh_token.  


OAuth Scope associated to the OAuth Access Token is disallowed. 

 

When the action you are trying to perform is not provisioned within the Scope that you have opted for during Grant token generation, an error message will be raised: "OAuth Scope associated to the OAuth Access Token is disallowed". Then you will have to verify the scopes again in the  API Help doc .

 

If the API doc you are trying to access is not available in the help doc, please check if you can achieve the same result by using a different API, if not please contact  support@site24x7.com .


Invalid Client

If the error raised is Invalid client, then it may be due to two reasons:

  1.The client_id that is being passed is invalid. Please verify the client_id once again in  https://api-console.zoho.com/

  2.It is possible that  you are not making the request to the correct Data Center. 


For example:


If you have registered your app in https://api-console.zoho.eu/ (EU domain) and you try to get the code from https://accounts.zoho.com/  (COM domain), an invalid_client error will be raised.
 

 

 

 


    • Related Articles

    • OAuth token Generation

      Create a Slack app. Select the workspace that you need to access using Slack Web API. Navigate to Permission and configure the Workspace URL in Redirect URL. Navigate to Scopes and add the below scopes to User Token Scopes:          users:read ...
    • How to download the Java agent ZIP file when you don't have access to the Site24x7 client?

      Linux Go to your desired location and execute the following command from the terminal: wget https://staticdownloads.site24x7.com/apminsight/agents/apminsight-javaagent.zip Windows Execute the following command (replacing your desired path) from ...
    • Troubleshoot connection errors in the MySQL plugin

      When configuring the MySQL plugin, you may encounter the following errors: Error : Connection Error - This error typically indicates that there is a problem establishing a connection to the database. Sometimes, this message is supplemented with an ...
    • How to exclude HTTP errors from monitoring

      Common HTTP errors can be ignored from being tracked to reduce the noise in your monitoring environment. To ignore such HTTP errors, please follow the instructions given below. Log into your Site24x7 account>APM Insight Your application> Edit  agent ...
    • Common HTTP response codes and their definitions

      HTTP Error Codes: Error codes will help you identify the reason why your website is reported 'down' by Site24x7. Below table gives a fair idea about different HTTP error codes, corresponding reason and World Wide Web Consortium definitions for each ...