on 2019 Nov 27 7:42 AM
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.
<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-2147024891, System.UnauthorizedAccessException</m:code><m:message xml:lang="en-US">Access denied. You do not have permission to perform this action or access this resource.</m:message></m:error>
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: 15.0.0.4867, 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 .
User | Count |
---|---|
64 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.