최근 검색


최근 검색 없음

ZCLI Basic Auth using secure settings



2025년 3월 19일에 게시됨

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? 


0

1

댓글 1개

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
 

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물