Issues with implementing Office 365 API on Android (Xamarin)

Viewed 321

I am trying to get this application running as a starting point. https://medium.com/xamarin-development/integrating-office-365-into-xamarin-apps-f9a33e5c73b1. I setup a trial account, entered the client ID, etc. When I try to enter credentials to login to my work Office 365 account or a separate outlook.com account, I get the following error in the debug output,

Refused to execute script from 'https://directory.services.live.com***' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

I'm not sure what this is supposed to do for the page, but it is definitely a function call and I assume it needs to happen to keep things moving.

SetTileUrl({"Views":[{"Id":{"Cid":"0x********","Puid":null},"Attributes":[]}],"TraceGraph":null});

Onscreen, the MS login page just says

"Sorry, but we're having trouble signing you in. We received a bad request."

More debugging and stepping through shows that I never get an access token to continue with.

I've been fighting with this for a quite a while, has anyone else been able to get this code working or seen this problem?

1 Answers
Related