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.
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.
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 firstname.lastname@example.org .
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.