{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/112","repository_url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet","labels_url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/112/comments","events_url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/112/events","html_url":"https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/112","id":170445088,"number":112,"title":"Social IDP Sign In Failure","user":{"login":"dave-pike","id":8517839,"avatar_url":"https://avatars.githubusercontent.com/u/8517839?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-pike","html_url":"https://github.com/dave-pike","followers_url":"https://api.github.com/users/dave-pike/followers","following_url":"https://api.github.com/users/dave-pike/following{/other_user}","gists_url":"https://api.github.com/users/dave-pike/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-pike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-pike/subscriptions","organizations_url":"https://api.github.com/users/dave-pike/orgs","repos_url":"https://api.github.com/users/dave-pike/repos","events_url":"https://api.github.com/users/dave-pike/events{/privacy}","received_events_url":"https://api.github.com/users/dave-pike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-10T15:23:18Z","updated_at":"2016-09-30T19:17:54Z","closed_at":null,"body":"When using an Azure AD B2C sign-in or a sign-up/sign-in policy and selecting a social IDP to authenticate in a Xamarin iOS and Android app, the library will regularly (though not every time) throw an exception after authentication on the social provider has completed. The exception contains a correlation ID and a generic error message, but nothing helpful.\r\n\r\nOn the [active-directory-b2c-xamarin-native](https://github.com/Azure-Samples/active-directory-b2c-xamarin-native) sample repository, there is an issue opened by @dstrockis regarding this, although I don't believe this to be an issue with the sample, but rather with MSAL, so I am submitting here. You can see his original post [here](https://github.com/Azure-Samples/active-directory-b2c-xamarin-native/issues/4)."},"comment":{"url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/comments/250829777","html_url":"https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/112#issuecomment-250829777","issue_url":"https://api.github.com/repos/AzureAD/microsoft-authentication-library-for-dotnet/issues/112","id":250829777,"user":{"login":"dave-pike","id":8517839,"avatar_url":"https://avatars.githubusercontent.com/u/8517839?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-pike","html_url":"https://github.com/dave-pike","followers_url":"https://api.github.com/users/dave-pike/followers","following_url":"https://api.github.com/users/dave-pike/following{/other_user}","gists_url":"https://api.github.com/users/dave-pike/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-pike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-pike/subscriptions","organizations_url":"https://api.github.com/users/dave-pike/orgs","repos_url":"https://api.github.com/users/dave-pike/repos","events_url":"https://api.github.com/users/dave-pike/events{/privacy}","received_events_url":"https://api.github.com/users/dave-pike/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T19:17:54Z","updated_at":"2016-09-30T19:17:54Z","body":"@kpanwar The error happens nearly every time I try to authenticate using a social IDP on iOS. It seems to happen quite regularly when signing into a Facebook, Google+, LinkedIn, or Amazon account. It does not appear to be an issue when signing in with a Microsoft Live account.\r\n\r\nYou can use the [active-directory-b2c-Xamarin-native](https://github.com/Azure-Samples/active-directory-b2c-xamarin-native) sample project to test it out. It throws a generic MsalServiceException with the following message:\r\n\r\n```\r\nAADB2C: An exception has occured.\r\nCorrelation ID: 5242b505-1418-4852-b1c6-942d682eaa18\r\nTimestamp: 2016-09-30 19:12:13Z\r\n```\r\n\r\nAnd here is the stack trace:\r\n\r\n```\r\n  at Microsoft.Identity.Client.Handlers.AcquireTokenInteractiveHandler.VerifyAuthorizationResult () [0x0004a] in <8a7f7c6b04594b87a43afc69286de458>:0 \r\n  at Microsoft.Identity.Client.Handlers.AcquireTokenInteractiveHandler+<PreTokenRequest>d__11.MoveNext () [0x00101] in <8a7f7c6b04594b87a43afc69286de458>:0 \r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 \r\n  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:447 \r\n  at Microsoft.Identity.Client.Handlers.AcquireTokenHandlerBase+<RunAsync>d__50.MoveNext () [0x00322] in <8a7f7c6b04594b87a43afc69286de458>:0 \r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 \r\n  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535 \r\n  at Microsoft.Identity.Client.PublicClientApplication+<AcquireTokenCommonAsync>d__13.MoveNext () [0x000f4] in <8a7f7c6b04594b87a43afc69286de458>:0 \r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 \r\n  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:535 \r\n  at Microsoft.Identity.Client.PublicClientApplication+<AcquireTokenAsync>d__7.MoveNext () [0x000c4] in <8a7f7c6b04594b87a43afc69286de458>:0 \r\n--- End of stack trace from previous location where exception was thrown ---\r\n  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 \r\n  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 \r\n  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357 \r\n  at TaskClient.WelcomePage+<OnSignUpSignIn>d__7.MoveNext () [0x00043] in C:\\Git\\Azure-Samples\\active-directory-b2c-xamarin-native\\TaskClient\\TaskClient\\WelcomePage.xaml.cs:59 \r\n```"}}
{"actor":{"display_login":"dave-pike"}}