I am currently creating an app for support and I am having trouble using the secure placeholder {{setting.name}}.
I am following this article: https://developer.zendesk.com/documentation/apps/app-developer-guide/using-the-apps-framework/?_ga=2.194966061.1010806308.1659961382-218685136.1659626457#using-secure-settings
I have installed the app as a private app since I know it does not work with the developer environment.
My request settings are setup as such:
var settings = {
url: "insert URL",
headers: {
Authorization: 'Basic ' + btoa("{{setting.token}}:PAT")
},
secure: true,
type: 'GET',
dataType: 'json',
};
Manifest is setup as such:
{
"name": "Project Name",
"author": {
"name": "name",
},
"defaultLocale": "en",
"private": true,
"location": {
"support": {
"ticket_sidebar": {
"url": "assets/iframe.html",
"flexible": true
}
}
},
"domainWhitelist": ["whitelistedRequestSite.com"],
"parameters": [
{
"name": "token",
"type": "text",
"secure": true,
"required": true
}
],
"version": "1.0",
"frameworkVersion": "2.0"
}
Thank you to whoever helps in anyway!
Quick review of your code and it looks good. Can you tell us more about the troubles that you're having? Is the auth header undefined or something else when received at the requests url?
Thanks!