I'm developing a web application which integrate with the sharepoint (multi-tenant). The app is supposed to upload and download files to the sharepoint.
I'm using the Sharepoint 2013 REST and trying to get access tokens - authenticate using methods described in this solution: http://msdn.microsoft.com/en-us/library/office/jj687470(v=office.15).aspx
I've registered the app using the Seller portal. And now I'm redirect user to the auth url:
https:///_layouts/15/OAuthAuthorize.aspx?client_id=&response_type=code&scope=Web.Create
This works fine as far as I'm logged in as the site administrator. I'm then asked to approve/trust the app (with a given permission - Web.Create).
But this doesn't work at all with non-site-admin account, when I'm logged in as non-admin user, I get just 'access denied' as a response from the OAuth.
Is there any way to use the sharepoint api - and being able to copy/read files - to the global sharepoint site using non-admin users?
Thanks a lot for any suggestions!