On a .org WordPress site with the Jetpack and IndieAuth plugins installed, we are unable to create/upload new media via the Media Library and also when editing a post. When the app POSTs to:
https://public-api.wordpress.com/rest/v1.1/sites/*/media/new?locale=en
a 400 is returned from the server with the following response body:
{
"error": 403,
"message": "Forbidden"
}
You can upload media successfully (200 response from the same endpoint 馃憜) if you either:
1) Disable IndieAuth and leave Jetpack activated
2) Disable Jetpack and leave IndieAuth activated
1) On a .org WordPress install, install Jetpack and activate it.
2) Next install IndieAuth and activate it
3) Run the latest WPiOS build and attempt to upload media via the Media Lib or within Aztec.
4) See the app crash hard when the server returns a 400 (403) and we don't handle it well.
developAlso, I should note you are able to create posts without attached media when both Jetpack and IndieAuth are installed & activated.
One more thing...having this plugin installed also causes Calypso to fail media uploads as well:

After chatting with @jeherve about this, it seems the issue likely has to do with the plugin hooking into authenticate thus overwriting all authenticated requests WordPress.com makes to the site.
Calling on the plugin author @pfefferle to jump in here with some thoughts about what might be blocking this from working so we can come up with a solution :)
Thanks @annezazu. For now, on the WPiOS side, we should definitely handle this 400 error in a better manner.
This issue has been marked as stale and will be automatically closed. This happened because:
However, discussion is still welcome! If the issue is still valid, please leave a comment with a brief explanation so the issue can be reopened.
Most helpful comment
After chatting with @jeherve about this, it seems the issue likely has to do with the plugin hooking into
authenticatethus overwriting all authenticated requests WordPress.com makes to the site.Calling on the plugin author @pfefferle to jump in here with some thoughts about what might be blocking this from working so we can come up with a solution :)