Recent searches


No recent searches

Nishaant Sharma's Avatar

Nishaant Sharma

Joined Mar 15, 2023

·

Last activity Apr 04, 2023

Following

0

Followers

0

Total activity

4

Votes

0

Subscriptions

2

ACTIVITY OVERVIEW

Latest activity by Nishaant Sharma

Nishaant Sharma created a post,

Post Developer - Zendesk APIs

hi,

I am working on a Oauth App that will authorise with Zendesk and Get the Zendesk tokens.

I see that we need to redirect user to below URL to start the auth flow.

https://{subdomain}.zendesk.com/oauth/authorizations/new?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope={scope}

I see that this needs {subdomain} as the input from User.

This will add an additional step on developer side to ask user its workspace subdomain.

Is there a way to skip/avoid that? Does zendesk provide an auth flow which also takes care of user selecting subdomain? 

Or it is on developer to get the {subdomain} from user first then proceed with auth flow.

Posted Apr 04, 2023 · Nishaant Sharma

0

Followers

2

Votes

1

Comment


Nishaant Sharma created a post,

Post Developer - Zendesk Apps Framework (ZAF)

i have setup a localhost server of my app running on https://localhost:3000,

I have a localhost app for Zendesk which is running on https://localhost:4567(running using

zcli apps:server) and in my manifest the landing page URL is pointing to localhost:3000. 

//Manifest file, only pasting the location property.
"location": {
"support": {
"ticket_sidebar": {
"url": "http://localhost:3000",
"flexible": true,
"size" : {
"height": "420px"
}
}
}
}

 

The issue is after authentication i am setting my auth token in the cookies, which is used to authenticate all the apis, but when i open the DevTools to see the cookies i am seeing that the cookies for my application(localhost:3000) is coming under the *.zendesk.com which is not expected. due to this my authentication is not working.

I wanted to understand how can cookies from different origin(localhost:3000) be present in another origin(*.zendesk.com)(localhost:3000 is opened in an iframe which is present in *.zendesk.com) , my apis are not able to get the token as there is none present in the cookies of localhost:3000.


Is this due to the fact that my ZAF app is also running on localhost:4567, even then the origin is different due to difference in port no., in any of the case the cookies should not reflect under *.zendesk.com.

Posted Mar 15, 2023 · Nishaant Sharma

0

Followers

1

Vote

0

Comments