Rest Assured - NTLM Authentication

739 views
Skip to first unread message

Sarath Kumar

unread,
Mar 13, 2018, 9:11:34 AM3/13/18
to REST assured
Hi!

I'm trying to automate REST API of Microsoft MSD CRM application using Rest Assured and it requires NTLM Authentication. I have used the below line of code for NTLM authentication and getting the error message;

            given().
auth().ntlm("username", "password", Workstation/hostname, "domain").      
         when().
       get("https://request URL'").
   then().
   statusCode(200);

Error: WARNING: NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))

Can anyone please help me how to do the NTLM authentication  - OR - if there is any alternate way to negotiate authentication as mentioned in error.

Please share your response immeditely if anyone knows as it's blocked with client deliverables.

Thanks,
Sarath
Reply all
Reply to author
Forward
0 new messages