bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
55 stars 10 forks source link

cypress-ntlm-auth: Certificate validation failed for "fonts.googleapis.com". ETIMEDOUT #229

Closed harelm4 closed 1 year ago

harelm4 commented 1 year ago

hello, im using cypress-ntlm to e2e test my app. the command is: npx cypress-ntlm run --browser chrome --env Environment=Development my ssoNtlm connection function is:

export const CyNtlmSso = (): void => {
  cy.ntlmReset();
  const user = Cypress.env('user');
  const password = Cypress.env('password');
  const cicd = Cypress.env('cicd');
  const allowedHosts = ['*.intel.com', 'localhost*', '*fonts.googleapis.com'];
  if (cicd) cy.ntlm(allowedHosts, user, password, 'ger', undefined, 2);
  else cy.ntlmSso(allowedHosts);
};

im getting an error : cypress-ntlm-auth: Certificate validation failed for "fonts.googleapis.com". ETIMEDOUT can you help me understand why?

bjowes commented 1 year ago

Hi, the hosts you add to allowedhosts should only be hosts that use NTLM. Googleapis is most likely not such a host. Try removing it.

ons 15 mars 2023 kl. 14:34 skrev harel moshayof @.***>:

hello, im using cypress-ntlm to e2e test my app. the command is: npx cypress-ntlm run --browser chrome --env Environment=Development my ssoNtlm connection function is: export const CyNtlmSso = (): void => { cy.ntlmReset(); const user = Cypress.env('user'); const password = Cypress.env('password'); const cicd = Cypress.env('cicd'); const allowedHosts = ['.intel.com', 'localhost', '* fonts.googleapis.com']; if (cicd) cy.ntlm(allowedHosts, user, password, 'ger', undefined, 2); else cy.ntlmSso(allowedHosts); };

im getting an error : cypress-ntlm-auth: Certificate validation failed for "fonts.googleapis.com". ETIMEDOUT can you help me understand why?

— Reply to this email directly, view it on GitHub https://github.com/bjowes/cypress-ntlm-auth/issues/229, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3BUMAKTFUUCRFBXNWDW4HAM3ANCNFSM6AAAAAAV32PDQU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- /Björn W

Skickat från min iPhone

bjowes commented 1 year ago

Closing due to lack of feedback