We noticed your question is related to Zendesk Apps Framework. We’re currently hosting a Zendesk Apps Framework (ZAF) AMA in our Community forum at this very moment, where our special guest team of experts are available to answer your development questions. We think other users would also benefit from seeing your question and the proposed solution. If you've got something you want our experts to look at, post here to receive a response by the end of the AMA.
Just noticed your suggestion and I've some questions about it.
I'm trying to save the state in a cookie after receiving and validating the signed request. However, how can I use this cookie if the ZAF requests are being through a proxy? I'm asking this because the cookie will be set for my app domain, not the proxy one.
Do I need to get the public key for each instance in order to decrypt it? Or is the public key global for all the app installations?
I need to perform some REST API requests from the backend. I'm thinking about having a secure parameter with the API Token and send it using the ZAF request. Is this the best approach for this?
You’ll need to save that validation state via a cookie, localstorage, or some other session authentication method. For more information I suggest this article.
I am getting the JWT token on my remote express server when the app is loaded through signedURLs. I want to use this token in my subsequent calls to the server. Can you please let me know a way of implementing that? I came across httpOnly cookies. But I think they don't work for cross domain requests. So I am trying to find another way. Also, can you please let me know how to get the information for which zendesk domains have installed or uninstalled my app?
Your question definitely requires some additional questioning, I've gone ahead and created a ticket on your behalf and will continue to assist you there.
Let's assume I've installed an App that contains ApiKey and ApiSecret on the settings page. For the first run I get this pair and make request to my server to obtain a JWT token.
How to store my JWT in App settings and to have possibility to update it in the future?
The options listed on the App Configuration page are the option parameters declared in the app's manifest.json. In your example of the Answer Suggestion app, the App Configuration page is asking for input values for the "Number of Results" and a "Custom Domain." There options were added by declaring the options are settings in the app's manifest. Here's the Answer Suggest app's Github repo- https://github.com/zendesk/answer_suggestion_app/blob/master/manifest.json
12件のコメント
Bryan Flynn
Closing this post -- moved conversation over to AMA post: https://develop.zendesk.com/hc/en-us/community/posts/360037266834-Doubts-about-Authenticating-Zendesk-in-your-server-side-app
0
Brett Bowser
Hi Paulo,
Brett here from the Zendesk Community Team!
We noticed your question is related to Zendesk Apps Framework. We’re currently hosting a Zendesk Apps Framework (ZAF) AMA in our Community forum at this very moment, where our special guest team of experts are available to answer your development questions. We think other users would also benefit from seeing your question and the proposed solution. If you've got something you want our experts to look at, post here to receive a response by the end of the AMA.
Best Regards!
0
Paulo Alves
Hi 588860096,
Just noticed your suggestion and I've some questions about it.
Kind regards,
Paulo Alves.
0
Joe May | Zendesk
Hi Pradnya-
You’ll need to save that validation state via a cookie, localstorage, or some other session authentication method. For more information I suggest this article.
0
Prad
Hi Devan,
I am getting the JWT token on my remote express server when the app is loaded through signedURLs. I want to use this token in my subsequent calls to the server. Can you please let me know a way of implementing that? I came across httpOnly cookies. But I think they don't work for cross domain requests. So I am trying to find another way. Also, can you please let me know how to get the information for which zendesk domains have installed or uninstalled my app?
0
Devan La Spisa
Hello Pradnya,
Would you mind sharing a bit more details on what issue or problem you are looking to resolve?
Best regards.
0
Prad
Hi Alexander,
Were you able to store the JWT in App settings?
0
Jonathan Pabon
Hey there Alexander,
Your question definitely requires some additional questioning, I've gone ahead and created a ticket on your behalf and will continue to assist you there.
Cheers,
0
Alexander Smirnoff
Hi all,
Let's assume I've installed an App that contains ApiKey and ApiSecret on the settings page. For the first run I get this pair and make request to my server to obtain a JWT token.
How to store my JWT in App settings and to have possibility to update it in the future?
0
Becca Schmidt
Hi Tom -
You can update an app's settings at any time using ZAT tools - there is more on updating an installed app here - https://developer.zendesk.com/apps/docs/apps-v2/using_sdk#updating-an-installed-app
The options listed on the App Configuration page are the option parameters declared in the app's manifest.json. In your example of the Answer Suggestion app, the App Configuration page is asking for input values for the "Number of Results" and a "Custom Domain." There options were added by declaring the options are settings in the app's manifest. Here's the Answer Suggest app's Github repo-
https://github.com/zendesk/answer_suggestion_app/blob/master/manifest.json
If you are looking to create a user settings or configuration page, the options are parameters declared in your manifest as mentioned above or alternatively, we also have the option to Create a Settings Page for Users. There is more on this here - https://developer.zendesk.com/apps/docs/apps-v2/setup#creating-a-settings-page-for-users
Hope this helps!
0
投稿コメントは受け付けていません。