Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member230921
Active Contributor
17,624
This blog describes session management in BOE 4.2 BI Platform REST SDK.

Authentication:


RWS APIs to get x-SAP-LogonToken:
























































Sl. No.

Description

REST API

Http Methods

Query Parameters
1.
Logon using username and password

http://host:<port>/biprws/vx/logon/long GET, POST N.A
2.
Logon with token/serialized Seeeion

 http://host:<port>/biprws/vx/logon/token  GET, POST  N.A
 3.
Logon with adsso

http://host:<port>/biprws/vx/logon/adsso   GET clienttype
4.
Logon trusted

http://host:<port>/biprws/vx/logon/trusted   GET  X-SAP-TRUSTED-USER, clienttype
5.
Logon trusted x509

http://host:<port>/biprws/vx/logon/trustedx509 GET clienttype
6.
Logoff (token must be in Header)


http://host:<port>/biprws/vx/logoff

POST N.A


Details:






































 BOE Version 4.2
host IP Address / Name of the of the server
port Port number (WACS)
x-sap-logontoken (Header)

Header key with value is Token.

For All API this header is must (not for Logon APIs).
 vx v1
x-sap-pvl (Header) us-en
Accept Applicaiton/JSON OR Application/XML
Content-Type  Application/JSON OR Application/XML


Must send the token to all RWS APIs in header "x-SAP-LogonToken".

Till 4.2 SP03 logon REST APIs creates light weight "Enterprise Session" so that session count in "CMC->Sessions" not increasing. But when we use this same token to Web Intelligence REST APIs count will increase by 1 in "CMC->Sessions".

 

Session management Issue:


Session created by RESTful web service (logon/long) doesn’t vanishes from CMC - Sessions tab after timeout (Issue reproducible only if user hits any raylight (Web Intelligence REST APIs))

Fixed : 4.2 SP02

Note :2359123 - RESTful logon token timeout doesn't work accordingly


Change in Session type:


Session type Changed to Enterprise Session from the release 4.2 SP04 and onwards.

So that if user use any APIs mentioned in table , immediately session count will increase for the user in "CMC->Sessions" page.

Enterprise Session Token timeout default : 60 min.

Maximum timeout : 1440 min (24 Hrs).

Administrator can set this value in "CMC->Servers->WebApplicationContainerServer-> Right click on this server ->Properties->EnterpriseSession Timeout".

http session timeout will not be applicable to Enterprise Sesison created using REST APIs.

 

Get LogonToken Workflow:


Method : POST Data Format: JSON



Method : POST Data Format: XML



Note: In XML format data will be xml encoded please decode the data if user is going to use in any other data format like in Headers or JSON Format.

Link:

https://help.sap.com/viewer/p/SAP_BUSINESSOBJECTS_BUSINESS_INTELLIGENCE_PLATFORM

 
11 Comments