Replies: 1 comment
-
this issue got fixed after whitelisting the auth endpoint. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am using Jenkins and sfcc ci for sfcc code deployment. FIrst I am trying to automate the process for the sandbox but facing an issue which I am thinking my company's firewall causing this but still need some suggestion from you.
So I am using this line in my pipeline script: sfcc-ci client:auth --selfsigned $ORG_CLIENT_TOKEN "$OD_CLIENT_SECRET"
client token and secret mentioned in the dw.json as well as I kept it stored in a secret file but still its trying to fetch the dw.json but thats okay as dw.json also having the exact right cred but I am not getting any response from the https://account.demandware.com/dw/oauth2/access_token this endpoint. PFB the console logs.
sfcc-ci client:auth --selfsigned '' -D
[DEBUG] Configuration loaded from /var/lib/jenkins/workspace/Aurora/Aurora_Nonprod/Aurora_SFCC/testing_sb/dw.json
[DEBUG] Using secret SFCC_OAUTH_CLIENT_ID from dw.json located at /var/lib/jenkins/workspace/Aurora/Aurora_Nonprod/Aurora_SFCC/testing_sb
[DEBUG] Using secret SFCC_OAUTH_CLIENT_SECRET from dw.json located at /var/lib/jenkins/workspace/Aurora/Aurora_Nonprod/Aurora_SFCC/testing_sb
[DEBUG] Authorize via Oauth client_credentials grant
[DEBUG] Doing auth request, payload: {"grant_type":"client_credentials"}
REQUEST { uri: 'https://account.demandware.com/dw/oauth2/access_token',
strictSSL: true, json: true, auth:
{ user: 'xxxxxxxxxxxxxxxxxxxxxx',
pass: 'xxxxxxxxxxxxxxx' },
form: { grant_type: 'client_credentials' },
callback: [Function],
method: 'POST' }
REQUEST make request https://account.demandware.com/dw/oauth2/access_token
{ request:
{ debugId: 1,
uri: 'https://account.demandware.com/dw/oauth2/access_token',
method: 'POST',
headers:
{ host: 'account.demandware.com',
'content-type': 'application/x-www-form-urlencoded',
authorization:
'Basic ODM3MzUxNTItZTA2OC00OGJhLWE2MjMtNDEzYTNlYzNjYWEyOkRldm9zJTQwMTIzNDU=',
accept: 'application/json',
'content-length': 29 },
body: 'grant_type=client_credentials' } }
--------its being stuck at here for almost 15 mins then printing the timedout error.
Error: Authentication failed: Error: read ETIMEDOUT
I am pretty much sure I've written the right script as well as using the right cred but not sure why its behaving in this way. Please suggest how to resolve this. Also if there is any alternative way for automation!
Beta Was this translation helpful? Give feedback.
All reactions