Share this page

# HTTP Basic Authentication

The PPM Web service client can be programmed so that instead of WS-Security headers, you can use HTTP basic authentication headers to pass the user credential.

The following examples illustrate how to pass the user credential by using HTTP basic authentication headers:

    public static void setHttpBasicAuthHeader(Stub stub, String
    username, String password) {
           Options options = stub._getServiceClient().getOptions();
           if (options == null) return;
           HttpTransportProperties.Authenticator auth = new
           HttpTransportProperties.Authenticator();
           auth.setUsername(username);
           auth.setPassword(password);
           auth.setPreemptiveAuthentication(true);
           options.setProperty(HTTPConstants.AUTHENTICATE, auth);
           stub._getServiceClient().setOptions(options);
         }

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: