Skip to Content
Technical Articles
Author's profile photo Mohammed Ashraf

SAML between ADFS and SAP Business Intelligence deployed on SAP NW AS Java

In order to enable SAML between ADFS and SAP Business Intelligence platform content deployed on SAP NW AS Java through Single Sign On (SSO)

This document describes how to establish trust between ADFS and SAP Business Intelligence deployed on SAP Netweaver AS Java

The configuration is divided into following

  1. Configure SAML authentication for SAP Business Intelligence deployed on SAP NW AS Java
  2. Setting up trusted authentication for BIP

SAP BI Configuration

Setting up SAML authentication for BIP on NW AS Java

  1. Generating BI Web application using Wdeploy for NW AS Java

Open command and navigate to wdeploy directory. By default directory is

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\wdeploy

  1. Run the following command to generate (in this doc we will generate only

wdeploy.bat sapappsvr73 -DAPP=BOE predeploy

  1. Generated default output location is

C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI          4.0\wdeploy\workdir\sapappsvr73\application

Enabling saml authentication

You now have to enable the authentication by editing the above generated file using     wdeploy.

Use third party tool ex – WinRAR and extract the file

Open the file

Note – Before making any changes make a copy of it.

Navigate to the DEPLOYARCHIVES directory and open the BOE.ear archive.

From within the BOE.ear archive, open the BOE war archive.


Goto lib


Adding Service Provider Jars

  1. The Spring SAML Service Provider Jars are available inside <BOE Install  Dir> \SAP BusinessObjects Enterprise XI 4.0\SAMLJARS,
  2. Copy these jars to above navigated lib folder  \WEB-INF\lib


Configure NW AS Java for HTTPS SSL

Follow steps from below blog to configure HTTPS SSL for NW AS Java

Enabling SAML for required Web Applications Properties

 SAML authentication has to be enabled for the different web applications. This can be done by uncommenting the respective endpoint in securityContext.xml and also by editing saml.enabled in customproperties files of the respective applications.

In this we will be enabling SAML for Old BI Launchpad BOE/BI

  1. Changes in securityContext.xml file

In the securityContext.xml under above generated file BOE.war\WEB-INF , there is a section for the SAML entry endpoints.

By default, only the SAML entry endpoint for Classic BI Launchpad is enabled.

  1. SAML Authentication can also be enabled for other applications Opendocument, Fiori Launchpad by uncommenting <security:intercept line of that particular application.
  2. Also in case SAML authentication has to be enabled only for one application ex : BI Launchpad alone, the <security:intercept-url pattern=”/BI” access=”IS_AUTHENTICATED_FULLY”/> has to been uncommented, comment the entry points for Opendocument, Fiori Launchpad.


Changes in

Create file in the BOE.war\WEB-INF \config\custom assuming custom properties file does not exist. If it is already does, only need to add the property saml.enabled=true

Configurations in the deployment descriptor – web.xml

Enabling SAML in the SP configuration

Activate the SAML context configuration

  1. Open the BOE.war\WEB-INF \web.xml file in a text editor.
  2. Remove the lines (<! —and –>) that comment out the contents of the START SAML / END SAML comments wherever you find in the web.xml file. Below snapshots show the uncommented part



A new filter has been introduced for SAML, the relevant section in the web.xml will be kept commented by default.

Enabling filters in web.xml of BOE webapps by uncommenting the SAML sections.

Web.xml file path –  BOE.war\WEB-INF \web.xml

Note: SAML authentication enablement is done the web application level, that is in BOE itself and not in individual webpath bundles.


Update IDP metadata in SP

The IDP metadata has to be downloaded from the respective IDP. Run the below URL in browser and download the IDP metadata file.


Rename the file to idp-meta-downloaded.xml

Copy the ADFS IDP idp-meta-downloaded.xml file to


SAML keystore generation
SAML exchanges involve usage of cryptography for signing and encryption of data.

You can generate your own self-signed key using the Java utility keytool by following steps

Navigate to <BOE  Install  Dir>\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin and run the following command to generate certificate.

keytool -genkeypair -alias <aliasname> -keypass <Password> -keystore <sampleKeystore.jks> -keyalg RSA -validity <numberofdays>

aliasname – certificate alias name, Password -password of your choice, numberofdays – number of the days during which the self-signed certificate is valid, sampletestKeystore.jks is name of the keystore file.

Example – keytool -genkeypair -alias Testkey -keypass Password1 -keystore sampletestKeystore.jks -keyalg RSA -validity 735

The generated keystore file has to be copied from bin folder  and  pasted under BOE.war\WEB-INF and the references of the new aliasname, Password, keyStore file name has to be changed in securityContext.xml file


The first argument (sampleKeystore.jks) points to the used key store file,
second line contains password (Password1) for the keystore which you enter in command prompt after entering the keystore generation command,
third line then maps with passwords for private keys with alias-password value pairs(Password1). Fourth line Alias of the default certificate is the last parameter.(Testkey).

Note: SP metadata has to be generated everytime this keystore file is changed.

After making all the above changes, Deploy file, now deploy on Netweaver but we also need to enable trusted authentication, will make those changes in and deploy.


Configure Trusted Authentication for Netwevaer AS Java with Web session


We enable SSO by using WEB_SESSION method to pass the IDP username and TrustedPrincipal.conf file to pass shared secret.


Generating shared secret
Enabling Trusted Authentication and Generating Shared Secret

  1. Go to CMC > Authentication > Enterprise
  2. Enable Trusted Authentication
  3. Click “Create new shared secret”
  4. Click “Download shared secret” – save it in your BOE machine
  5. Click “Update”

In the BOE.war/web-inf/config/default/folder, extract the following files to the



Add the following in





Click Save and save the TrustedPrincipal.conf file to the following directories:

<INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\win64_x64\

<INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\win32_x86\


Create the IDP user in BOE

The IDP user has to be created in BOE or imported through some SDK script or export using CSV option in CMC.

The SAML based authentication relies on TrustedAuth from the web-server to the CMS. For this, the IDP users will have to be created in BOE as Enterprise users.

Import the bulk users into BIPlatform:


Locate the custom.jsp file inside the web folder at C:\Program Files (x86)\SAP BusinessObjects\tomcat\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView\web\custom.jsp

Make the following changes to the custom.jsp file in the location mentioned above

<\!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”  “”>

<%@ page language=”java” contentType=”text/html;charset=utf-8″ %>

<% //custom Java code

Update and close the archive file.

After doing the above steps in file, now deploy on Netweaver.


ADFS Configuration

For ADFS IDP related configuration, follow the steps from section ADFS Configuration from below blog.


Learn More:

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Wiwatsan Ngamcharoenrujee
      Wiwatsan Ngamcharoenrujee

      Could you suggest on my issue?

      Author's profile photo Ganesh B-alwosta
      Ganesh B-alwosta

      Hi Asharf,


      I got good information form the post, as we are implementing 2 factor authentication (through Mobile OTP).

      Since we are using BO 4.1 SP5, i could not find SAML Jarfiles in the this  location <BOE Install  Dir> \SAP BusinessObjects Enterprise XI 4.0 .

      Can you please suggest where can i find this and apporch?


      Thanks in advance.

      Ganesh B

      Author's profile photo Mohammed Ashraf
      Mohammed Ashraf
      Blog Post Author

      Thanks for your comment.

      SAML support is available from BI 4.2 SP05