You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 aNotImplementedException
to be thrown from theWin8RTPlatformAdapter
's call toWebAuthenticationBroker.AuthenticateAsync()
. The reason for this seems to be thatAuthenticateAsync
is not supported on the phone, withAuthenticateAndContinue
being the replacement - this and this were two MSDN pages I found that seemed relevant. Essentially, callingAuthenticateAndContinue
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 (sinceAuthenticateAndContinue
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.The text was updated successfully, but these errors were encountered: