cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up SAP PI for a Rest call using Oauth 2.0

former_member233999
Participant
0 Kudos

I have a requirement of getting Sales orders from eBay and will use their fulfillment api to get orders. However i am new to REST and I wanted to get something working in Postman or another API tool before configuring / developing anything in PI.

From what i've read i should be able to use OAuth 2.0 but in my instance of PI 7.5 Hana I only seem to have Concur OAuth2.0 as an option, with my Oauth request, is it possible to use the Concur Oauth 2.0 selection and just modify settings to suit my call?

Does anybody have a guide on using postman with rest for eBay calls -i've tried using their test tool but keep getting errors about authentication even though i've got a developer account and that account is authorised to the 3rd party application.

Just some step by step guides on 1) entering end point 2) what headers to use 3) how to put in further filters would be useful.

Thanks

George.

Accepted Solutions (1)

Accepted Solutions (1)

former_member233999
Participant

To be honest i ended up using the oldschool version of 'user' and 'password'.

I did get oauth2.0 working for amazon though if anyone needs any help with that !!

0 Kudos

hello george, how to do it ?

Answers (3)

Answers (3)

ajay_sharma32
Discoverer
0 Kudos

Hello George

Were you able to solve this ? Are you using SAP PI7.5 standard feature to get token and manage the scope as well. I guess current PI Oauth2 functionality uses new token every call instead using the old one which is within the expiry scope.

rasjoshi
Active Contributor
0 Kudos

Hi George Applegate,

Can you check with eBay team with OAUTH2.0 details like what is grant type?

For PI 7.5, we should have OAUTH2.0 login option. Please check if you need to import any patch or upgrade SP level.

Please check if SAP Note 2405166 helps you.....

BR,

Rashmi

former_member233999
Participant
0 Kudos

Yes there is that note that includes a new oauth type, but for speed of getting this to work I think I will do auth n auth method. Its just sifting through the minefield of ebay api's to get one that i can call back sales orders with !

former_member607993
Contributor
former_member233999
Participant
0 Kudos

Ive checked the "Rest adaptor dont be scared" post, but it doesnt detail how to handle the 2 step approach that eBay requires to handle the Oauth2.0 connection.

Ideally id connect using ARC or postman before hand so i can get the wsdl so i can begin my pi build.

Thanks

manoj_khavatkopp
Active Contributor
0 Kudos

George ,

As per eBay's developer link , it supports client credential/auth code Oauth and these are supported by REST adapter.

Br,

Manoj

former_member233999
Participant
0 Kudos

Hi

Yes i just found a sap note: https://launchpad.support.sap.com/#/notes/2405166 that contains the grant auth type selection as per screen shot:

grant-token.png

Now all i need to do is find a suitable guide to get me connected, seem to be getting a lot of auth errors in postman even though i've authorised my developer account to access the 3rd party's ebay account. Any tips are welcome !

apu_das2
Active Contributor

Hi,

I REST adapter there is an

Flow option called "OAuth 2.0 Grant type flow"

OAuth 2.0 Grant Type = Client Credentials Grant.

Use this to to call your ebay services.

Thanks,
Apu