최근 검색
최근 검색 없음

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
댓글
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
댓글