最近搜索
没有最近搜索

Nishaant Sharma
已加入2023年3月15日
·
最后活动2023年4月04日
关注
0
关注者
0
活动总数
4
投票
0
订阅
2
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Nishaant Sharma
Nishaant Sharma 创建了一个帖子,
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.
已于 2023年4月04日 发布 · Nishaant Sharma
0
关注者
2
投票
1
Comment
Nishaant Sharma 创建了一个帖子,
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.
已于 2023年3月15日 发布 · Nishaant Sharma
0
关注者
1
投票
0
评论