Ask a Question

ReadyAPI throws 401 unauthorized error when accessing kerberos authenticated wsdl.

SOLVED
arul
New Contributor

ReadyAPI throws 401 unauthorized error when accessing kerberos authenticated wsdl.

I have Kerberos authenticated webservice deployed in application server. By following steps in below url I am able to setup Spaui 5.30 version for kerberos testing. However in the same system ReadyAPI is throwing unaauthorized error. I have done all the corresponding steps for ReadyAPI also. 

https://www.soapui.org/soap-and-wsdl/spnego/kerberos-authentication.html

In the same client machine it is working in Java client also. Only ReadyAPI not working.

Please help me to solve this issue.

 

Regards,

Arul

 

 

10 REPLIES 10
Nastya_Khovrina
SmartBear Alumni (Retired)

Hi Arulkumar,

 

Thank you for your post. Please compare Raw requests from SoapUI 5.3.0 and Ready! API. Maybe the "Authorization" header in the Ready! API request is missing.

 

To get a Raw request in Ready! API, please choose the Raw tab in the left request. See an example: http://screencast.com/t/5zWSX2Y9.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

Hi Anastasia,

 

Thanks for the response. As you told there is no authorization header in the Raw request of ReadyAPI. However even after selecting Raw tab in the request I am getting same error. Please see attached screen shots of ReadyAPI and SoapUI and let me know your thoughts.

 

Thanks & Regards,

Arul

Nastya_Khovrina
SmartBear Alumni (Retired)

Hi Arul,

 

Please enable the "Authenticate preemptively" option in Ready! API Preferences > HTTP: http://www.screencast.com/t/rXRr09P9.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

Hi Anastasia,

I enabled that option but I still don't see the Authentication header under the Raw tab?

Nastya_Khovrina
SmartBear Alumni (Retired)

Hi ayusuf, 

 

Do you use the Kerberos authentication? If so, here is the documentation for this type: https://support.smartbear.com/readyapi/docs/projects/requests/auth/types/spnego.html 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

Hi Anastasia,

Yes, I'm using SPNEGO/Kerberos (Built-in) as my authorization. I know the request is working because when I remove the Kerberos ticket from my user directory the request fails.  

Nastya_Khovrina
SmartBear Alumni (Retired)

What version of ReadyAPI do you use?


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sonya_m
SmartBear Alumni (Retired)

Nastya, thank you a lot! 

 

Hi @ayusuf , have you solved the issue? FYI, the new ReadyAPI version (3.0.0) is out and updating could improve the situation.  

 

 


Sonya Mihaljova
Community and Education Specialist

ayusuf
New Contributor

Hi Sonya,

No I'm still having the issue after updating to ReadyAPI 3.

I still don't see the Authorization header in the Raw request tab. I also do have the check mark box checked on Authenticate Preemptively in my Preferences.

Let me know if there is anything else I can do such as looking at a log file or something.

 

Thanks in advance.

cancel
Showing results for 
Search instead for 
Did you mean: