Skip to Content
Dec 23, 2018 at 05:19 PM

Linkedin Integration with CPI using HTTP OAuth2


Hello All,

I am trying to build Linkedin Integration scenario using CPI.

Scenario: SOAP->CPI->HTTP

I have extracted below all required information from Linkedin Developer portal which is required for OAuth2.

1) Client ID

2) Client Secret

3) Access Token

4) Auth URL

I have tested message using Postman tool, it is working fine and message get posted at Linkedin.

Issues in CPI:

1) In Manage Security Material page:

a) Under OAuth2 Credential -> Client Credential, there is no option to maintain Access Token, also what in scope what need to maintain?

b) Can i use OAuth2 Credential -> OAuth2SAMLBearerAssertion? But for this i don't have required information for authentication.

2) As CPI do not support REST Adapter, I need to use HTTP Adapter by default. I was referring below blog from Mr. Eng swee to post message to HTTP using OAuth2.


a) But as per blog i can not generate Access Token on run time for Linkedin, also generated Access token is 500 char long which i can not maintain in Secure parameters.

b) Also how to use OAuth2 Credential in Groovy script to passing HTTP header, and how to pass below HTTP header parameters in groovy script.

- Authorization ( Bearer "Access Token value")

- Connection (Keep-Alive)

- Content-type (application-json)

- x-li-format (json)

Kindly help for this and let me know in case more information required.

Thanks & Regards,

Karan Kholakiya