SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a sharepoint server with a claims-based authentication (ADFS server).

I have a Java app that needs to push data to a sharepoint list, preferably over the REST API, and with the additional requirement of needing to do it securely (authenticated and over https).

Has anyone done anything like this? I having the hardest time finding any solution that isn't "code the entire sharepoint/adfs/kerberos auth conversation from the ground up, just to get a fedAuth cookie"

share|improve this question
This seems like a brutal task. The sources I have read say there really isn't much you can do EXCEPT code your java from the ground up. Maybe you could try writing a .NET app, and use your java to talk to that? It seems like a roundabout way to do it, but then you would know exactly how to interface with it and still be able to use the SharePoint API on the .NET end. I know that's not an ideal solution - just brainstorming. – Matt May 16 '12 at 15:43

Hi Trek I please see this links

Using C# how we pass authentication to sharepoint online site. This may help u.

share|improve this answer

One cool way to do this is to enter a mediation web service if you have the capability... Write a .net webservice which accepts the parameters you need and use the .net client side api to enter in the info... I think this will be the least headache for you.

share|improve this answer

if the sharepoint usese mixed authentication, you can use the header "X-FORMS_BASED_AUTH_ACCEPTED"= "f" to fallback to NTLM

see also

share|improve this answer
this little tool will help you authenticate java to sharepoint: – dov.amir May 23 '14 at 13:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.