Basic Authentication using LANSA Integrator
Posted: Thu Oct 05, 2023 1:55 am
We are using the JSM HTTP Server in order to implement basic authentication for web services.
We are using SoapUI Client to test the web service:
Endpoint: http://172.30.120.23:82
Resource: /cgi-bin/jsmdirect?service=Z$WS001
Method: POST
We are using the default credentials specified in the httpd.xml file i.e (User="user" and password= "password")
The httpd.xml contains access code "bb644a9819425bfd8586b408896a1031" which is a hash of user, password and realm
Question 1: how do we compute a new hash if we want to change user credentials?
Question 2: We were able to get past the authentication when we passed the default user credentials but got another error:
Error:
<html>
<head><title>501 Method Not Implemented</title></head>
<body>
<p>
<b>HTTP POST method is not implemented</b>
</p>
How do I specify the method in the http.xml? I guess we need to somehow define cgi-bin/jsmdirect?
Any help would be appreciated.
We are using SoapUI Client to test the web service:
Endpoint: http://172.30.120.23:82
Resource: /cgi-bin/jsmdirect?service=Z$WS001
Method: POST
We are using the default credentials specified in the httpd.xml file i.e (User="user" and password= "password")
The httpd.xml contains access code "bb644a9819425bfd8586b408896a1031" which is a hash of user, password and realm
Question 1: how do we compute a new hash if we want to change user credentials?
Question 2: We were able to get past the authentication when we passed the default user credentials but got another error:
Error:
<html>
<head><title>501 Method Not Implemented</title></head>
<body>
<p>
<b>HTTP POST method is not implemented</b>
</p>
How do I specify the method in the http.xml? I guess we need to somehow define cgi-bin/jsmdirect?
Any help would be appreciated.