Trying to access hosted SharePoint 2013 from Java app gives me 401 although I use correct OAuth token
问题 I'm trying to access our company SharePoint 2013 instance, which is hosted at ourinstance.sharepoint.com, with small Java web application. I registered application through _layouts/15/AppRegNew.aspx this way: I let SP generate Client ID, Client Secret, to App Domain I set: ourdomain:8443 to Redirect URL I set: https://ourdomain:8443/our-redirect-processing I edited application permissions with _layouts/15/appinv.aspx, where I looked it up by client ID and edited its Permission Request XML to