最近搜索


没有最近搜索

Getting invalid_client for Oauth



已于 2022年2月23日 发布

Hi Team,

We are working for chat API and here is my Zendesk subdomain URL https://persistentsystems9423.zendesk.com.

As per online document of Zendesk supports Oauth2 grant types: "password" and "client_credentials". We are trying with grant types: "password", we are getting "error": "invalid_client" here is the link which we are referring to generate access token

https://support.zendesk.com/hc/en-us/articles/4408828740762-Chat-API-tutorial-Generating-an-OAuth-token-integrated-Chat-accounts-

Access token request URL: https://www.zopim.com/oauth2/token

NOTE: We are using Suite Professional trial version

please find attached postman screenshot for token request.

Kindly help

 


0

3

3 条评论

Hi Team,

Now we are able to generate access_token, below are the online document link which I am referring

Reference link :  https://developer.zendesk.com/documentation/live-chat/getting-started/auth/?_ga=2.250995846.1862546895.1645623617-772904335.1632167253

but for it first we have to update  "client_type": "public" to  "client_type": "confidential" using API (PUT /api/v2/oauth/clients/{oauth_client_id}).

please find attached postman screenshot for token request.

Image 1

 

Image 2

Please let me know if, is there any way which I can update client_type form front end UI instead of API (PUT /api/v2/oauth/clients/{oauth_client_id}). ?

 

0


Hi Team,

Please let me know if, is there any way which I can update client_type form front end UI instead of API (PUT /api/v2/oauth/clients/{oauth_client_id}). ?

0


image avatar

Sergey

Zendesk Customer Care

Hi Chandrakant,

Albeit a bit too late - I hope that my answer will be helpful for any future developments on your side or for general public.

Password grant type is not supported by integrated chat accounts (your case) and is used on chat only accounts, as per Password grant type -
"This grant type is only supported on Chat-only accounts. It's not supported on Chat+Support accounts".

I can also see a 401 http response from our chat host for your attempts to get a token - it could indicate that your entered password/email do not match with login database. In case you are getting same error over and over - please reach out to our support team for further assistance, as there could be something unique to your account that prevents you from generating required token.

All the best!

0


请先登录再写评论。

找不到所需的内容?

新建帖子