Implicit Grant - OAuth client ID or redirect URI is invalid

Hi All,

I am following the steps in below documentation

I have created a OAuth client with Implicit grant type, with redirect uri : CRM application login page.
Scope: Conversations( since i am using create call conversation API POST/api/v2/conversations/calls)
Copied the Authorization URL and client ID. I have also assigned admin role for this OAuth client in authorized applications.

I am using postman to make a request to create call conversation API POST/api/v2/conversations/calls.
Whenever I click on get new access token, I get error like the OAuth client ID or redirect URI is invalid as attached screenshot.
I think the authentication is not happening or am I missing something here.

As per my understanding authentication server needs to authenticate and redirect me to the redirect uri, but the authentication is not happening here.

Please correct me, for any things missed, this is the first time I am using Implicit grant type.

The authentication is not "not happening", it is failing.
As the error states, either your client ID or your redirect URI are wrong.
You haven't provided any of your actual code, only the documentation you were following, so nobody can really help you beyond reiterating what it says.

Redirect URIs are case sensitive and must match exactly, that's one easily messed up thing that could cause this.

HI @Eos_Rios ,

I am using postman to make a request to create call conversation API POST/api/v2/conversations/calls.
Below are the details of the postman OAuth client, the redirect URI is matched exactly and still the same error persists.

If you are using the Postman desktop app, you can enter your auth details in your web browser instead of in Postman by selecting Authorize using browser .

Hi @mikehardie,

I am using postman desktop app, I am getting the same error after selecting Authorize using browser.
Below are the configuration of postman.

I assume "the same error" means that you're getting an error that your redirect URI is incorrect? If so, you need to configure the OAuth client with the redirect URI you're using. It must be an exact match, character for character, and is case sensitive.

Also make sure you're using the values from the implicit grant documentation you linked above. It looks like you're using wrong URLs that are not the ones from the implicit grant documentation.

If you have a reason to use Postman, you're free to do what you want. But I would recommend using the API Explorer tool we provide as it allows you to make API requests without doing any setup. https://developer.genesys.cloud/devapps/about/api-explorer

Post changing the Auth URL in postman to Genesys Cloud we are able to generate token and use it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.