title: Using java to upload a file to a Sharepoint Online repository authenticated by ADFS SSO?
body: <p>I need to upload a file to a sharepoint online repository (Office 365). I need to do this in java and the sharepoint online site uses ADFS for single sign-on. </p>
  
  <p>So far, all of the examples, sample-code, etc I've works for <em>most</em> of those requirements, but fails at one critical part (e.g.: java file upload with sso for a <em>local</em> sharepoint 2013 site, or java file upload to sharepoint online, but without the ADFS part). Authentication against ADFS seems to be one of the big sticking points. </p>
  
  <p>Does anyone have an example of this working that meets all of those requirements? </p>
  
  <p>edit-to-add: and, naturally, I've got no budget to do things like buy a commercial library that might do this quick-and-easy. :\ </p>