Company

About Us
Team
Careers
Customer
Customers
Partners
Partners
Partners

Inchara - CSR

Partners

Contact Us

Latest News

Cherrywork Digital Applications

Pre-packaged, ready to deploy applications

Overview

Intelligent Task Management
Deliver Intelligent Notifications, Tasks and Process
Insights in Real-time

In-Store Perishables Management
Enable grocery retailers to prepare for
peak hour sales

Accounts Payable Automation
Automate Tasks for Better Visibility and Control
over Financial Data

Proof of Delivery
Organize, Manage and Track Shipment Detail
in Real-time

Supplier Collaboration Portal
Gain Control over Supplier Data and
Collaboration across the Processes

Mobility for Warehouse
Ensuring data accuracy for inventory and
boost warehouse operation efficiency.

Collaborative Order Management
Simplify, Streamline and Integrate Orders to
Grow Revenues

Intelligent Price Management
Manage Pricing and Respond to Marketplace
Changes Quickly

HXM Modernization Suite
Deliver More Intuitive, Engaging Experiences that
Boost Productivity

Permit to Work
Automate work permit approval processes
and ensures safe operation.

Resource Management
Plan your Resources and Project Schedule
Effectively

Advanced Metering Analytics
Transform SMART Meter Data into Actionable
Intelligence

Predictive Asset Maintenance
Balance Risk and Maximize Value Across the
Asset Lifecycle

Pipeline Corrosion and Leak Detection
Identify pipelines susceptible to leaks & corrosion
and manage the complete pipeline lifecycle.

Digital Solutions

Overview

Robotic Process Automation

Application & Process Integration
Connect People, Processes, and Applications to
Build an Intelligent Enterprise

Robotic Process Automation

Mobility
Leverage Enterprise Mobile Applications for
Agility, Scalability, and Availability

User Experience
Visualize Business Operations with
User-Friendly and Intuitive Designs

Data Management and Analytics
Utilize Actionable Insights with Advanced Data Analytics

Robotic Process Automation
Digitize Time-consuming Tasks and Processes
with Intelligent Automation

Robotic Process Automation

Hyperautomation
Discover Next-level Business Automation with
Our Hyperautomation Solutions

Robotic Process Automation

Design Mantrai
Transform Your Organization with Design-led
Innovation and Technology

Robotic Process Automation

Cloud Migration
Enhance Your Business Capabilities with
Cloud Migration Services

Robotic Process Automation

SAP BTP Starter Pack
Enable Digital Transformation to Strengthen Operations with SAP BTP Services

Industries

Consumer Products & Retail
Drive Intelligent Value with Digital

Manufacturing
Digitize E2E Value Chain

Oil and Gas
Extend Beyond the Barrel with Digital

Life Sciences
Improve Patient Outcomes and Safety

Cherrywork.com

How to trigger SAP Cloud Platform Integration via Oauth in Postman

WRITTEN BY

Alisha Viz

PUBLISHED​

10th June 2022

INTEGRATION

SHARE

Introduction

Hi Guys!!! So this is my first technical blog post on SAP CPI. Hope you guys are going to like it.

As we know, Cloud Platform Integration (CPI) is SAP’s cloud middleware that allows blending between cloud and on-premise applications with third-party SAP and non-SAP products. Take it as given, I am assuming you are already familiar with CPI.

Till now, we have learnt about triggering postman using basic authorization. In this blog I am going to demonstrate triggering postman via OAUTH 2.0.

For more information on CPI, refer https://blogs.sap.com/2020/01/03/sap-cloud-platform-integration-cpi-part-1-know-your-tool/

Pre-Requisite:

  1. 1. SAP BTP cockpit account cloud foundry set up, refer this: https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/9c7092c7b7ae4d49bc8ae35fdd0e0b18.html

    2. Postman is Installed

Create a simple Sender Scenario (with HTTPS Sender Adapter)

The below figure shows the integration flow that you get as an outcome of this exercise.

Oauth Inbound
1. Click Save and Deploy the Integration flow.
2. Refer to below screenshot, copy the end url and save it for later.
Oauth Inbound

Navigate to SAP BTP Account/ Trial Account

  1. Logon to your SAP CPI Tenant

2. Navigate to Instances tab under Security

3. Service Instances and Keys are created at Cloud Foundry level when we set up our account.  Navigate to your Cloud Foundry where Process Integration Runtime service keys has been created. In SAP Cloud Platform trial a default space named dev is automatically created when you will enable the trial environment.

4. Select View parameters from the icon with three vertical dots.

services instances

5. After clicking on View, you will find this type of service key on right hand side of screen, click on that.

6. Save that information confidentially in any notepad.

5. After clicking on View, you will find this type of service key on right hand side of screen, click on that.

6. Save that information confidentially in any notepad.

credentials
  • TESTING THE FLOW

    For testing the above flow, I have used postman. You can use any other test console too.

    1. Navigate to the postman app and click on the + sign on top.

    2. Select the POST method.

    3. Paste the CPI enpoint url in the link space.

    4. Choose Oauth 2.0 from the authorization tab.

    5. Refer to the image below

learn more about authorization
  • 6. Now, when you choose oauth 2.0, you can find following details as shown below
Click here to sync your token
  1. Give grant type = client credentials
  2. Paste the access token url
  3. Paste the client_id and client_secret that you already have from the service key.
  4. Click on Generate Access token
  5. Your authentication will be done and it will automatically generate and restore your token, click on send and you get your result.

Keep in mind

An OAuth token contains sensitive information. We also have a choice to share the token. As you can see the sync icon under authorization tab. By default they dont keep it in sync position. But the token is still restored in your session.

Products Updates

Conclusion: To summarise, we are triggering the SAP CPI artifact via Oauth instead of Basic authorization using Postman.

For more information refer: https://blog.postman.com/collaborating-oauth-postman/

Do like, share and comment if you found this helpful.

See you again….

Related Stories