I'm following along with this OneNote API tutorial that uses the Live Connect SDK for Windows Phone 8 to authenticate the user:
http://msdn.microsoft.com/en-us/library/office/dn575424.aspx
I have authentication working but I'm seeing a strange workflow and then an error.
When I run the app on the Windows Phone 8 Emulator:
- I see the sign-in page. I click on the sign-in page to login with my Microsoft account.
- After I log in I am asked to authorize (my) app for access. I click yes to do so and the page in my app prints out "authentication successful"
- I click the "Create simple page" button and it says "page successfully created"
- I click the "See page" button and it takes me to Microsoft's OneDrive where I need to sign in again.
At this point I get an error that says "Problem signing in. with the error code 0x8000FFFF"
Note: If I run it on my Lumia phone I don't get the error but when it tries to the view the page it says "Notebook not found" and aborts.
Note2: If I try to login to OneDrive directly via the home page I get an "HTTP 503 Service Unavailable" error.
My questions are:
- How can I fix this error? Is it simply not possible to effectively do an app like this in the Emulator?
- How can I streamline this authentication process? I don't want to have to go through all the steps again every time I test my app, let alone how it will affect my users. Is there a way to store involved authentication tokens and pass them back to both the Live SDK single-sign in control and to the web browser based OneDrive login?
UPDATE #1: Apparently developing Live connect apps with OneDrive login on the Emulator isn't possible.