You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sanoran Triamesh <sa...@gmail.com> on 2007/04/12 23:09:36 UTC

[AXIS2] Form-based Authentication problem

I have to access an Axis2 servlet which is behind a pubcookie protected
server. Essentially, it is an authentication mechanism that authenticates as
follows:

1) Client (browser) tries to access .../someservice  on the server.
2) PubCookie intercepts and redirects to a login page with a form
3) Client (browser) fills out the form and submits.
4) PubCookie authenticates and sets cookies etc, and redirects to
.../someservice
5) Client accesses .../someservice (must be same as in (1))
6) PubCookie intercepts, checks, and from now on allows all requests to
.../someservice or any other path in the server.

Using apache httpclient, this is quite straight-forward, just make the
requests in order with the (3) being a post with form detals and
password/userid.

However, ServiceClient does not allow access to httpclient inside it, so
these steps cannot be carried out programmatically.
I could probably create a custom authentication scheme which will do all of
the above steps, but I havent found an example or any instructions.

Any help or suggestions will be greatly appreciated.

Thanks
S.T.