Skip to Content

SAP PI REST Adapter OAuth configuration

Hi Experts,

We have recently added SP10 in PI 7.4.

I would like to explore the possible ways to config OAuth in PI REST adapter to consume REST APIs.

Scenario: ECC <--> PI<-->SFDC [REST API]

As per the blog: New adapter in SAP Process Integration for consumption and provisioning of REST based services

the feature is available in SP10 which was released this month beginning.

As part of Proof -Of-Concept, I have chosen SalesForce REST APIs to explore the new PI REST Adapter features.

I have worked previously worked integrating SFDC using SOAP Lookup, SOAP Adapter and Advantco REST Adapter in older versions of PI

If anyone tried using PI REST Adpater to connect cloud based applications, please share some pointers.

OAuth dancing is one of the challenging part in REST APIs.

Basically looking for dynamic HTTP header addition in the through REST adapter like getting token, then dynamic url creation with token access to post subsequent messages and refresh token.



Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Oct 27, 2015 at 04:25 PM


    Did you have any success in getting the REST Adapter to work with SFDC REST API - specifically using SAML Bearer Assertion Flow for the OAuth token authorization?

    Have a similar requirement and have been trying without success the OAuth SAML Bearer Assertion flow that is now available in the REST Adapter (7.4 SP11)


    pastedImage_1.png (82.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 23, 2015 at 02:16 AM

    Hi Praveen

    Yes, OAuth is a challenging part especially if it is not natively supported by the adapter.

    Although the blog mentioned that OAuth is planned to be shipped with SP10, it is not mentioned anywhere in the below release notes for SP10.

    SAP Process Integration - What's New in SAP NetWeaver 7.4 (Release Notes) - SAP Library

    Since you have asked Alex directly in his blog, maybe you can wait for his reply on the OAuth feature.

    If OAuth is not out yet, I think it might also be hard to develop a workaround solution - even if you can perform a step to get the OAuth token, custom HTTP headers are also not supported yet, so you can't put the OAuth token value into the HTTP request.


    Eng Swee

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2015 at 03:19 AM

    Hi All,

    Do you have a step by step reference document for OAuth 2.0 in sender REST Polling adapter ?



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 15, 2016 at 06:49 PM

    We are on 7.31, SP17 and still looking for a way to talk to using SAP REST adapter. Looks like SAP has not yet made the OAuth 2.0 a generic one.

    Any suggestions?



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 04, 2020 at 05:13 PM

    Can anyone give me more information on this?

    I have a similar scenario for POC where I have to replace advancto rest by SAP rest. How do I handle session ID?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.