cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.8k stars 3.17k forks source link

NTLM Authentification #850

Open Aymkdn opened 6 years ago

Aymkdn commented 6 years ago

Hi,

This is a question. I haven't been able to find an answer, so I'm trying here.

I wanted to test your product on our Sharepoint On-Promise, in our intranet. However I'm blocked on cy.visit("https://domain%5Clogin:password@www.intranet.com/site/") that returns a 401 error.

I tried both Chrome and Electron from the dropdown selection.

Any idea how I could have the authentication working? We use NTLM authentication for our Sharepoint.

Thanks

sarita555 commented 3 years ago

Please provide the alternative solution. I was not successful due to authentication issue

Thanks, Sarita

On Nov 10, 2020, at 6:28 PM, Mathieu Paquette notifications@github.com wrote:

 Having a blast using Cypress but running into the NTLM issue here as well, which is unfortunately a showstopper for me using it and evangelizing it at work.

Are you using kerberos? I figured out a workaround to make it work in my firm. You can leverage the HTTP_PROXY functionality provided by Cypress.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

mathpaquette commented 3 years ago

@sarita555 is your computer part of a Windows network? Basically you're trying running Cypress in the enterprise isn't it?

sarita555 commented 3 years ago

Yes I’m on the government network and we run share point application in windows.

We connect to Citrix using PIV to get into government network.

Once in the network we need to authenticate to access any SharePoinf spfx site.

I hope the above details are clear.

Thanks, Sarita

On Nov 17, 2020, at 9:51 PM, Mathieu Paquette notifications@github.com wrote:

 @sarita555 is your computer part of a Windows network? Basically you're trying running Cypress in the enterprise isn't it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

mathpaquette commented 3 years ago

@sarita555 got it. You mean that you need to logon first (Windows) and then when you connect to SharePoint you get asked for the same credentials or they are different from your Windows one? Just trying to figure out the authentication type.

sarita555 commented 3 years ago

Yes when I manually test the steps are

  1. Connect to the network via Citrix’s
  2. Connect to virtual machine: windows
  3. On chrome enter application URL
  4. Prompted for windows authentication
  5. Application is now accessible to interact.

Cypress:

  1. Connect to the developer box: virtual machine
  2. Cypress is installed in the virtual machine
  3. Run test
  4. I never get prompt for windows authentication but fails for access denied. Not sure how to bypass this windows authentication. I tried to privide windows authentication cress with ntlm plug in but same access denied.

Thanks, Sarita

On Nov 18, 2020, at 7:35 AM, Mathieu Paquette notifications@github.com wrote:

 @sarita555 got it. You mean that you need to logon first (Windows) and then when you connect to SharePoint you get asked for the same credentials or they are different from your Windows one? Just trying to figure out the authentication type.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

sarita555 commented 3 years ago

Mathieu Paquette, Is it feasible for us to share screen and try to resolve or implement the fix you are suggesting? Please let me know your availability

Thanks

On Thu, Nov 19, 2020 at 4:12 PM Sarita emailsarita2@gmail.com wrote:

Yes when I manually test the steps are

  1. Connect to the network via Citrix’s
  2. Connect to virtual machine: windows
  3. On chrome enter application URL
  4. Prompted for windows authentication
  5. Application is now accessible to interact.

Cypress:

  1. Connect to the developer box: virtual machine
  2. Cypress is installed in the virtual machine
  3. Run test
  4. I never get prompt for windows authentication but fails for access denied. Not sure how to bypass this windows authentication. I tried to privide windows authentication cress with ntlm plug in but same access denied.

Thanks, Sarita

On Nov 18, 2020, at 7:35 AM, Mathieu Paquette notifications@github.com wrote:



@sarita555 https://github.com/sarita555 got it. You mean that you need to logon first (Windows) and then when you connect to SharePoint you get asked for the same credentials or they are different from your Windows one? Just trying to figure out the authentication type.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/850#issuecomment-729649187, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVXFIFC74FBMDIP5NQNLVLSQO5RPANCNFSM4EBNQQHQ .

-- Thanks, sarita

bjowes commented 2 years ago

ntlmSso only works on windows, since it uses the internal windows API to authenticate using the account logged into windows.

fre 8 juli 2022 kl. 02:22 skrev aammakolla-lb @.***>:

Error: SSO is not supported on this platform. Only Windows OSs are supported. in cypress .when trying run in linux machine throughj jenkins I get this error. using ntlmSso. Does this work on linux machines?

— Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/850#issuecomment-1178397790, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3CZA7LVD5XVB7XOE6DVS5YFTANCNFSM4EBNQQHQ . You are receiving this because you were mentioned.Message ID: @.***>

-- /Björn W

Skickat från min iPhone

Hazaruddinsyed commented 1 week ago

Hi Everyone, I am also having the same blocker. I am stuck with windows authentication for my SharePoint intranet application. Can someone help me out regarding this. I have tried NTLM still getting error 401. If someone already have a solution please help me out. Thank you.