Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Authentication Issues on Windows Phone 8.1 #24

Open
jcheng31 opened this issue Aug 5, 2014 · 0 comments
Open

Authentication Issues on Windows Phone 8.1 #24

jcheng31 opened this issue Aug 5, 2014 · 0 comments

Comments

@jcheng31
Copy link

jcheng31 commented Aug 5, 2014

Using the 2.0.6-pre version, it doesn't appear that authentication works out-of-the-box for WP8.1 apps (using the "Store Apps" type that can be converted to Universal apps later; I haven't tried on Windows Phone Silverlight 8.1.)

I tried using the AuthenticateUser method, which causes a NotImplementedException to be thrown from the Win8RTPlatformAdapter's call to WebAuthenticationBroker.AuthenticateAsync(). The reason for this seems to be that AuthenticateAsync is not supported on the phone, with AuthenticateAndContinue being the replacement - this and this were two MSDN pages I found that seemed relevant. Essentially, calling AuthenticateAndContinue suspends the app, launches a browser to allow the user to sign in, then resumes the app with the result passed as EventArgs in the Activated event handler (which is within the app's code).

It seems like some sort of phone-specific platform adaptor could solve this, though it wouldn't be able to conform to the AuthWithBroker signature (since AuthenticateAndContinue suspends the app and causes control to jump elsewhere upon resuming), and the library wouldn't be able to wrap the entire authentication process like it currently does.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant