cancel
Showing results for 
Search instead for 
Did you mean: 

OAuth 2.0's Client Credential grant type in SAP PO 7.4

0 Kudos

Hi all,

I'm working with SAP PO 7.4 and I need to use an API REST with authentication OAuth 2.0's grant type.

Is it possible to use it or SAP PO 7.5 is needed?

Note 2405166 refers to PO 7.5, anyway is it possible to use this kind of authenticaton or do I have to force an upgrade to 7.5?

Thank you

Nicola

Accepted Solutions (0)

Answers (3)

Answers (3)

vicky20691
Active Contributor

Can do with SAP PI 7.4 with right service pack. You can even try importing the recent SAP BASIS tpz file.

https://blogs.sap.com/2019/04/25/fetch-oauth-token-in-rest-is-now-out-of-the-box/

Regards,

Vikas

former_member607993
Contributor

Hello nicola.bacchion,

You can refer this blog API Token via Http Lookup in Adapter Module.

Class MessageIDMapper: https://help.sap.com/doc/javadocs_nw75_sps06/7.5.6/en-US/PI/index.html?com/sap/aii/af/service/idmap/...

Message ID mapper is Interesting one. Wrap to Store and read the Tokens. The tokes are stored in PO internal table(uses parameter: dc.keyValueStore.key).It is a singleton class, which is only instance and access by other classes/functionality of SAP PI.

In the REST channel, set up a custom adapter module configuration which look ups for the token from parameter 'keyValueStore.key' and you can see the values in table 'XI_AF_SVC_ID_MAP'.

Thanks,

Rajesh PS

former_member413432
Discoverer
0 Kudos

Hi all, PO has been upgraded to 7.5, so issue has been solved.

Thank you all.

Regards,

Nicola