Back to Contents 


Tutorial: Configuring a client for HTTP and Proxy Authentication

       
    Configuration steps to authenticate the client to a server
 

       
    Configuration steps to authenticate the client to a proxy

   

   Step 1: Add a HTTP Authenticate entry to FGLPROFILE

   Step 2: Configure the client to authenticate to a server

   

   Step 1: Add an HTTP Authenticate entry to FGLPROFILE

   Step 2:  Configure the client to authenticate to a proxy


Step 1 (HTTP Authentication): Add a HTTP Authenticate entry to FGLPROFILE

To connect to a server with HTTP Authentication (See RFC 2617 for more details), it is necessary to define the client login and password as registered on the server side.
The following two entries must be defined with an unique identifier (httpauth for our example) to define a HTTP Authentication with fourjs as login and passphrase as password:

authenticate.httpauth.login     = "fourjs"
authenticate.httpauth.password  = "passphrase"

Return to top 


Step 2 (HTTP Authentication): Configure the client to authenticate to a server

As a client is able to connect to different servers that do not know the client with the same login and password, it is necessary to specify the login and password that correspond to each server.
To authenticate the client known as fourjs and with the password passphrase by the server myserver, add the following entry:

ws.myserver.authenticate = "httpauth"

Return to top


Step 1 (Proxy Authentication): Add a HTTP Authenticate entry to FGLPROFILE

To connect via a proxy with HTTP Proxy Authentication (See RFC 2617 for more details), it is necessary to define the client login and password as registered on the HTTP proxy.
The following two entries must be defined with an unique identifier (proxyauth for our example) to define a HTTP Proxy Authentication with myapplication as login and mypassword as password:

authenticate.proxyauth.login     = "myapplication"
authenticate.proxyauth.password  = "mypassword"

Return to top


Step 2 (Proxy Authentication): Configure the client to authenticate to a Proxy

To authenticate a client known as myapplication and with mypassword as password by the HTTP Proxy, add the following entry to the HTTP proxy configuration:

proxy.http.authenticate = "proxyauth"
Notes:
  1. To authenticate the client to a HTTPS proxy, replace http with https.

Return to top