[Version 5.0.2 and later]Configuring HTTP basic authentication

Why and when to perform this task

This HTTP basic authentication is orthogonal to WS-Security and distinct from the HTTP basic authentication that WS-Security supports.

To configure HTTP basic authentication, use the WebSphere Application Server tools to modify the binding information or programmatically set properties in a Stub or Call object. The values set programmatically take precedence over the values defined in the binding. However, you only can programmatically configure the HTTP proxy authentication.

Steps for this task

  1. Use either the Assembly Toolkit or the administrative console to configure the HTTP basic authentication
    • Before installing the Web services application, use Assembly toolkit to configure the HTTP basic authentication in the Web Services Client Port Binding page for a Web service or a Web service client. The Web Services Client Port Binding page is available after double-clicking the webservicesclient.xml file.
    • After installing the Web services application, you can use administrative console to configure the Web services client security bindings for a Web service only. To access the collection, complete the following steps:
      1. Click Applications > Enterprise Applications.
      2. Under Related Items, click either Web Modules or EJB Modules.
      3. Click the name of the URI.
      4. Under Additional Properties, click Web Services: Client Security Bindings.
      5. Click HTTP Basic Authentication to access the HTTP Basic Authentication panel. Enter the values in the HTTP Basic Authentication panel.
  2. Programmatically set the properties in the stub or call object for a Web service or a Web service client
    Programmatically set the following properties:
    javax.xml.rpc.Call.USERNAME_PROPERTY
    javax.xml.rpc.Call.PASSWORD_PROPERTY
    javax.xml.rpc.Stub.USERNAME_PROPERTY
    javax.xml.rpc.Stub.PASSWORD_PROPERTY
    
  3. Programmatically set the properties in the stub or call object to configure the HTTP proxy authentication.
    Programmatically set the following properties for HTTP:
    com.ibm.wsspi.webservices.HTTP_PROXYHOST_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYPORT_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYUSER_PROPERTY
    com.ibm.wsspi.webservices.HTTP_PROXYPASSWORD_PROPERTY
    

    Programmatically set the following properties for HTTPS:

    com.ibm.wsspi.webservices.HTTPS_PROXYHOST_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYPORT_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYUSER_PROPERTY
    com.ibm.wsspi.webservices.HTTPS_PROXYPASSWORD_PROPERTY
    


Related concepts
Transport level security
HTTP basic authentication
Related tasks
Securing Web services based on WS-Security
HTTP SSL configuration collection
Related reference
HTTP basic authentication collection



Searchable topic ID:   twbs_confighttpbasicauth
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/twbs_confighttpbasicauth.html

Library | Support | Terms of Use | Feedback