cancel
Showing results for 
Search instead for 
Did you mean: 

Sharepoint Integration with REST adapter + NTLM authentication

former_member181985
Active Contributor
0 Kudos

Dear All,

Need your help for the below,

I have a sharepoint Integration requirement to upload files using REST adapter using PO 7.4 SP11 middleware

Scenario: IDOC --> SAP PO --> 'Sharepoint' using REST API

And as per Sharepoint technical guy, their sharepoint system only supports NTLM authentication in a two step process

Step-1) execute url:[WebUrl]/_api/contextinfo with HTTP POST method and NTLM authentication --> to get FormDigestValue (i.e., Token) in response

Step-2) To upload file: use above Step1 FormDigest vlaue (in request http header) to call second http end-point say dynamic url:[WebUrl]/_api/web/GetFolderByServerRelativeUrl('" + [FolderUrl] + "')/Files" + "/Add(url='" + [FileName.Extension] + "', overwrite=[true/false])"

I understand that, step 2 alone is possible with REST adapter (i.e., assuming no step-1)

But, I am not sure if both steps 1,2 are possible with REST adapter by default without having a need for custom development for step-a i.e., HTTP calls in mapping or custom Adapter module to get the Token and utilize it for second HTTP call

Any idea? Any other better solution?

Thanks,

Praveen Gujjeti

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you will have to use KaTe Restful adapter that provides NTLM as authentication option. Otherwise you will need to do your custom development

former_member181985
Active Contributor
0 Kudos

Hi,

Anyone has worked or have an idea - on above requirement with NTLM authentication in REST adapter?

Thanks,

Praveen

Former Member
0 Kudos

As far as i know not possible with the standard adapters in PI/PO (especially NTLM v2)

You might look for a self-developed solution or try a partner adapter

(e.g. KaTe RESTful Adapter)

With best regards

                   Sebasitan