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

SSO is broken on WinPhone #77

Closed
afshins opened this issue Aug 7, 2014 · 4 comments
Closed

SSO is broken on WinPhone #77

afshins opened this issue Aug 7, 2014 · 4 comments
Labels

Comments

@afshins
Copy link
Contributor

afshins commented Aug 7, 2014

The method WebAuthenticationBroker.GetCurrentApplicationCallbackUri returns exception

System.UriFormatException: Invalid URI: The hostname could not be parsed.
Result StackTrace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at Windows.Security.Authentication.Web.WebAuthenticationBroker.GetCurrentApplicationCallbackUri()

Following up with the WAB team...

@afshins
Copy link
Contributor Author

afshins commented Aug 13, 2014

This seems to be happening only when a native app is calling our managed library. SSO mode in managed WinPhone app is working fine. The WAB team is notified, but there is a chance that it would take a while until we see a fix in WAB.

@RandalliLama
Copy link

We will await WAB devs conclusion, but we shouldn't block on this.

@afshins
Copy link
Contributor Author

afshins commented Aug 26, 2014

A workaround was added:

Check an application’s local setting with the value of the ms-app redirectUri. If exists, use it, otherwise throw.

ApplicationData.Current.LocalSettings.Values["CurrentApplicationCallbackUri"] = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();

afshins pushed a commit that referenced this issue Aug 26, 2014
Need better help/documentation on UserIdentifierType #81
brentschmaltz added a commit that referenced this issue Aug 26, 2014
SSO is broken on WinPhone #77
@afshins
Copy link
Contributor Author

afshins commented Aug 26, 2014

Fixed.

@afshins afshins closed this as completed Aug 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants