ZCLI Basic Auth using secure settings | Community
Skip to main content

ZCLI Basic Auth using secure settings

  • March 19, 2025
  • 1 reply
  • 0 views

Gef11

I can't seem to get basic auth working. I already tried what's described in this article https://developer.zendesk.com/documentation/apps/app-developer-guide/making-api-requests-from-a-zendesk-app/#using-basic-access-authentication 
 

We use a token:token format for our basic auth and I think the issue is a restriction on secure settings in the basic_auth.username object.

var apiCall = {
                URL: url
                headers: {
                    "Authorization": "Basic {{basic_auth.token}}"},
                basic_auth: {
                    "username": "{{setting.api_token}}",
                    "password": "{{setting.api_token}}"
                },
                type: 'GET',
                secure: true
            };

 

Can someone help point out my mistake here? 

1 reply

Tipene
  • March 24, 2025
Hi Gef,
 
Can you please share a screenshot of any errors that are appearing when you're running your code? That'll be helpful in narrowing down a cause here.
 
Thanks,
 
Tipene