{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/196","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/196/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/196/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-cordova/issues/196","id":343066192,"node_id":"MDU6SXNzdWUzNDMwNjYxOTI=","number":196,"title":"No way to find reply URL issued by Windows\\Store when using ADFS","user":{"login":"PJHumbug","id":41473098,"node_id":"MDQ6VXNlcjQxNDczMDk4","avatar_url":"https://avatars2.githubusercontent.com/u/41473098?v=4","gravatar_id":"","url":"https://api.github.com/users/PJHumbug","html_url":"https://github.com/PJHumbug","followers_url":"https://api.github.com/users/PJHumbug/followers","following_url":"https://api.github.com/users/PJHumbug/following{/other_user}","gists_url":"https://api.github.com/users/PJHumbug/gists{/gist_id}","starred_url":"https://api.github.com/users/PJHumbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PJHumbug/subscriptions","organizations_url":"https://api.github.com/users/PJHumbug/orgs","repos_url":"https://api.github.com/users/PJHumbug/repos","events_url":"https://api.github.com/users/PJHumbug/events{/privacy}","received_events_url":"https://api.github.com/users/PJHumbug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-20T11:03:23Z","updated_at":"2018-07-25T09:11:57Z","closed_at":null,"author_association":"NONE","body":"### Issue Description\r\nWhen enabling ADFS support using `<preference name=\"adal-use-corporate-network\" value=\"true\" />'` then trying authenticate I see an invalid reply URL message. \r\n\r\nhttps://i.stack.imgur.com/oJMdM.jpg \r\n\r\nThis message doesn't occur when not using \"adal-use-corporate-network\" but then I cannot authenticate when on company network (only direct with AAD). \r\n\r\nTracing through the library and checking the logs I can see no errors when the error message is shown. All I can do in UI is close the login window so the library reports that the user cancelled the operation. \r\n\r\nThe one in the code is registered in AAD.\r\n\r\nMy theory is because the app is registered with the store it is changing the reply URL but the is no way for me to find out what it has changed it to!\r\n\r\nTried but not worked:\r\nChecking AAD and ADFS logs in trace but seems to say authentication successful - no errors.\r\nStepping through code but cannot see reply URL change. \r\nThe instructions for the .NET library say to check in code but that's not possible in Cordova:\r\nhttps://github.com/Azure-Samples/active-directory-dotnet-native-uwp-wam\r\nOn same page it descibes the format of the URL is like this:\r\nms-appx-web://Microsoft.AAD.BrokerPlugIn/S-1-15-2-2650639956-658609593-457089695-429683492-3460685052-1353383220-3160185542\r\nI tried this URL replacing the code with package id in Store: https://developer.microsoft.com/en-us/dashboard \r\n\r\n\r\n### Repro Environment Details\r\n1. Installed plugin version:  0.10.1\r\n2. Target Platform: Windows 10\r\n3. Cordova and platform versions: Cordova 8.0.0. Windows Platform 6.0.0 \r\n4. Test device and OS version: Windows 10 Desktop X64\r\n5. Visual Studio 2017 + TACO. Updated Cordova and plugins via command line.\r\n6. Using ADFS/SSO. App registered to Windows Store as Line of business application. \r\n7. No reply URL in logs\r\n\r\nStackoverflow question:\r\nhttps://stackoverflow.com/questions/51309537/how-to-get-allocated-reply-url-when-using-adal-plugin-for-cordova-in-windows-on\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/comments/407688473","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-cordova/issues/196#issuecomment-407688473","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-cordova/issues/196","id":407688473,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzY4ODQ3Mw==","user":{"login":"PJHumbug","id":41473098,"node_id":"MDQ6VXNlcjQxNDczMDk4","avatar_url":"https://avatars2.githubusercontent.com/u/41473098?v=4","gravatar_id":"","url":"https://api.github.com/users/PJHumbug","html_url":"https://github.com/PJHumbug","followers_url":"https://api.github.com/users/PJHumbug/followers","following_url":"https://api.github.com/users/PJHumbug/following{/other_user}","gists_url":"https://api.github.com/users/PJHumbug/gists{/gist_id}","starred_url":"https://api.github.com/users/PJHumbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PJHumbug/subscriptions","organizations_url":"https://api.github.com/users/PJHumbug/orgs","repos_url":"https://api.github.com/users/PJHumbug/repos","events_url":"https://api.github.com/users/PJHumbug/events{/privacy}","received_events_url":"https://api.github.com/users/PJHumbug/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T09:11:57Z","updated_at":"2018-07-25T09:11:57Z","author_association":"NONE","body":"@ramaguduri - thanks I got the redirect URI. Won't be able to test until later this week so will report back result. \r\n\r\nReally appreciate the response. "}}
{"actor":{"display_login":"PJHumbug"}}