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

Authentication Issues on Windows Phone 8.1 #24

@jcheng31

Description

@jcheng31

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions