Recent searches


No recent searches

Glenn Chen's Avatar

Glenn Chen

Joined Mar 20, 2024

·

Last activity Apr 10, 2024

Following

0

Followers

0

Total activity

4

Vote

1

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Glenn Chen

Glenn Chen commented,

CommentAPI and SDK

Hi Paolo,

First, I need to emphasize that “I don't want to ask users about their passwords”.
I want to show some Zendesk content in my web app based on users' authorization status.

 

If I go with Oauth2, I will need to ask user's password, this is the example from Oauth2 Password grant type

curl https://{subdomain}.zendesk.com/oauth/tokens \
  -H "Content-Type: application/json" \
  -d '{"grant_type": "password", "client_id": "{your_client_id}", 
    "client_secret": "{your_client_secret}", "scope": "read",
    "username": "{zendesk_username}", "password": "{zendesk_password}"}' \
  -X POST

 

If I go with Making API requests on behalf of end users, I also need password from the user.

curl https://{subdomain}.zendesk.com/api/v2/oauth/tokens.json \
-H "Content-Type: application/json" \
-d '{"token": {"client_id": "your_client_id", "scopes": ["impersonate", "write"]}}' \
-X POST -v -u {email_address}:{password}

 

Either way I need users' passwords to do it, is there a way I can do it without requesting their passwords?
 

View comment · Edited Apr 10, 2024 · Glenn Chen

0

Followers

0

Votes

0

Comments


Glenn Chen commented,

CommentAPI and SDK

Hi all

I have similar concern with Ramy Ben Aroya' s comment here

I want to show some Zendesk content in my web app. As far as I know, I can do it either through Oauth2 or by making a request on behalf of an user, but eventually I will need end users' passwords, is there a way I can do it without having to request their passwords?

View comment · Posted Mar 20, 2024 · Glenn Chen

0

Followers

0

Votes

0

Comments