bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
54 stars 9 forks source link

Can this be configured when NTLM server is on a path of a host? #239

Closed hutcho66 closed 1 year ago

hutcho66 commented 1 year ago

Is it possible to configure this package to work when the NTLM server is on a path of the host?

My company has a shared host for configuring different SSO domains for each app, rather than using a single SSO domain across the whole company. So the NTLM server actually sits on https://_host_/_sso_domain_ there's nothing actually hosted on the https://_host_.

I managed to debug and it looks like the plugin is trying to authenticate to the host directly, which won't work as the NTLM server I need to authenticate is on the /_ssodomain path of the host

cypress:plugin:ntlm-auth Cannot perform handshake. Error: NTLM authentication failed (www-authenticate with NTLM not found in server response) with host host

hutcho66 commented 1 year ago

Closing this issue, figured out my issue - was using an incorrect domain parameter and the error message confused me!