Steps to Integrate SiteMinder with Backend 3<sup>rd</sup> Party Application's Basic Authentications.
search cancel

Steps to Integrate SiteMinder with Backend 3<sup>rd</sup> Party Application's Basic Authentications.


Article ID: 52983


Updated On:


CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On


Steps to Integrate SiteMinder with Backend Basic Authentications from 3rd party application.


  1. After the user is authenticated and authorized by SiteMinder, user will access the backend resource and get Basic Challenge.

  2. Once user submit the userID/PWD for the backend application, users get prompt to submit credential again for other backend resources. For example, "/backend/app1" get prompt, "/backend/app1/abc.png" get prompt, "/backend/app2/display?abc=123" get prompt.


  1. Apache Reverse Proxy Server with WebAgent Enabled.

  2. 3rd Party application (for example, weblogic or tomcat resource) protecting resource with Basic Authentication. In this document, eHealth 6.1 is the sample application.


  1. Sample Layout

    <Please see attached file for image>

    Figure 1

    • From the above, SiteMinder can be installed on to [A] or [B].

      • If WebAgent is installed on [A], it does not touch any of eHealth components so the configuration is independent.

      • This document will base on having WebAgent installed on [A] as shown above.

  2. Configure [A] ASF Apache to work as a reverse proxy server.

    • On Unix, it can be compiled with following parameters.

      • ./configure --prefix=/application/reverseproxy --enable-proxy --enable-so --enable-mods-shared=most

      • On Linux, you need run LIBS="-lpthread" then export LIBS before you run the above

    • On Windows, you just need to uncomment the following modules from default setting.




    • Enable reverse proxy by adding the following entries in the httpd.conf file. is the sample eHealth Apache RP Server.

      • ProxyRequests Off

      • <Proxy *>

      • Order deny,allow

      • Allow from all

      • </Proxy>

      • ProxyPass /

      • ProxyPassReverse /

    • Run Agent Configuration Wizard to enable WebAgent. (Make sure prerequisite objects such as agent identity and so on are created)

    • Modify Agent Config Object to remove non-siteminder extensions from the IgnoreExt parameter.

    • Setup a UserStore/Domain/Realm/Rule/Policy to protect "/" realm and authenticate user using HTML Form Authentication Scheme. This Form Authentication Scheme may need to be served from other Web Server as /siteminderagent/forms/login.fcc resource will also be proxied to eHealth Apache RP. (Or you can use Basic Auth from SiteMinder but for a better sample and reference purpose, Form Authentication Scheme is used)

    • Create an "OnAccessAccept" rule.

    • Create a "Response" to set the following header(Choose "Static" for response type).

      • Header name: 'HTTP_AUTHORIZATION'

      • Header value: 'Basic <%userattr= "title "%>'

        • In this sample, "title" user attribute will store the encoded credential. If you do not want to use an existing user attribute, it would be better to create a custom user attribute to store the a base64 encoded user credential for this integration purpose.

        • The user credentials need to be in specific format before base64 encode.

          • "<userID>:<password>" and this is the user credential that will be accepted by the backend ([C]) application's basic auth challenge.

          • For example, if the "user1" and his password "[email protected]" need to be encoded, it should be "user1:[email protected]" and base64 encoded value will be "dXNlcjE6UEBzc3cwcmQ="


          • This base64 encoded string need to be stored in "title" user attribute.

            • Note: SiteMinder user credential and eHealth user credential may be different. For example, "user1" logon to SiteMinder but that user is "euser20" in eHealth. The credential to store in the user attribute is the eHealth credential.

          • When user is authorized by SiteMinder, OnAccessAccept rule will be triggered and the tied response will load the "title" user attribute and formulate the HTTP_AUTHORIZATION header with the value "Basic dXNlcjE6UEBzc3cwcmQ=".

    • Ensure OnAccessAccept Rule is tied to the response in the policy.

  3. Test the feature

    1. Accessing [A] ( and get redirected to login form from SiteMinder.

    2. Submit userID and Password to login

    3. Browser will redirect back to the originally requested resource and then to eHealth welcome page.

    4. Click on the "continue" button and you will get challenged by eHealth.

      1. At this point, with the above configurations, eHealth will be fed with HTTP_AUTHORIZATION header and with the value "Basic dXNlcjE6UEBzc3cwcmQ=" so the user will seamlessly get access to eHealth resource.

  4. This concept should work with most Basic Authentication Schemes coming from the backend applications.

  5. Limitation

    1. The base64 encoded user credential need to be updated for each individual users that will access eHealth (or any backend application).

    2. If user want to self-change password, a custom code will be required to update the user attribute with the new base64 encoded credential.

    3. In order to set the HTTP_AUTHORIZATION header and its value, all non-SiteMinder extensions from IgnoreExt need to be removed.

  6. Best Practice

    1. eHealth to use the same userstore as SiteMinder.


Component: SMAPC


1558720879343000052983_sktwi1f5rjvs16vtx.gif get_app