Domanda

SardineFactory.begin(username, password);
sardine.exists("http://mydomain.sharepoint.com/TeamSite/Documents");

I thought sardine can login auto but it returns 403 error.

I didn't use sardine and SharePoint Online before.

Remote Authentication in SharePoint Online Using Claims-Based Authentication

I know i should do something else but don't know how.

Anyone can help me?

Nessuna soluzione corretta

Altri suggerimenti

The SharePoint is most likely using Claims-Based Authentication, which is a nightmare to negotiate and authenticate through using Java.

Most solutions I've seen from others (although I have not yet seen a working demo) claim you have to use a .NET "mediator" in a non-CBA environment that your Java app can communicate with, and the "mediator" will in turn more easily get through the CBA authentication routine (keeping things within the .NET family).

Being stubborn, I am working on a pure Java solution and will post if I ever get it working.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top