Pesquisas recentes
Sem pesquisas recentes

Nishaant Sharma
Entrou em 15 de mar. de 2023
·
Última atividade em 04 de abr. de 2023
Seguindo
0
Seguidores
0
Atividade total
4
Votos
0
Assinaturas
2
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Nishaant Sharma
Nishaant Sharma criou uma publicação,
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.
Publicado 04 de abr. de 2023 · Nishaant Sharma
0
Seguidores
2
Votos
1
Comentário
Nishaant Sharma criou uma publicação,
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.
Publicado 15 de mar. de 2023 · Nishaant Sharma
0
Seguidores
1
Votos
0
Comentários