Search code examples
phpauthenticationjakarta-eejax-ws

jax-ws, authentication for php clients


Scenario: Server is glassfish with jax-ws web services and clients is php based

What type of authentication for web services is more computable with php based clients?

  1. HTTP Basic Authentication
  2. HTTPS Client Authentication
  3. Mutual Authentication (is it supported ?)
  4. Digest Authentication (is it supported ?)

Description:

Specifying an Authentication Mechanism


Solution

  • No. 1 over HTTPS is most compatible, easy to implement in PHP. Don't use #1 over clear HTTP.

    Don't know what you mean by No. 2 and No. 3, they sound the same to me. That can be done with curl.

    No. 4 is also supported in CURL.