Skip to Content
Nov 27, 2019 at 07:42 AM

On Premise Sharepoint to SCP integration


Hi Team

We are doing some thing new in SCP , We wanted to pull tasks from On Premise sharepoint to SCP by using java . So we did configuration accordingly like Created Cloud connector , exposed required service in the cloud connector with the required access policy , and Created the destination in the cloud with the virtual host (from the CC) , Basic Authentication and chosen Onprem system .

When we are trying to access resources with the Basic Authentication through java and UI5 Html we are getting bellow error.

-2147024891" target="_blank">"> -2147024891, System.UnauthorizedAccessException Access denied. You do not have permission to perform this action or access this resource.

HTTP/1.1 401 Unauthorized [Cache-Control: private, max-age=0, Transfer-Encoding: chunked, Content-Type: application/xml;charset=utf-8, Expires: Mon, 11 Nov 2019 14:41:40 GMT, Last-Modified: Tue, 26 Nov 2019 14:41:40 GMT, Server: Microsoft-IIS/8.5, X-SharePointHealthScore: 0, X-AspNet-Version: 4.0.30319, SPRequestGuid: 60a51b9f-ba3e-20f4-ec6b-383e890bad28, request-id: 60a51b9f-ba3e-20f4-ec6b-383e890bad28, X-FRAME-OPTIONS: SAMEORIGIN, WWW-Authenticate: NTLM, X-Powered-By: ASP.NET, MicrosoftSharePointTeamServices:, X-Content-Type-Options: nosniff, X-MS-InvokeApp: 1; RequireReadOnly, Access-Control-Allow-Origin: *, Date: Tue, 26 Nov 2019 14:41:40 GMT] ResponseEntityProxy{[Content-Type: application/xml;charset=utf-8,Chunked: true]}

So we went through some blogs everywhere its saying to use Oauth token instead Basic auth , so please can you suggest us how can we proceed with Oauth in java or UI5 and any code snypet if you have .