{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/419","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/419/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/419/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/419","id":184049727,"number":419,"title":"Adal-Angular Infinite loop","user":{"login":"keyurtechy","id":19809053,"avatar_url":"https://avatars.githubusercontent.com/u/19809053?v=3","gravatar_id":"","url":"https://api.github.com/users/keyurtechy","html_url":"https://github.com/keyurtechy","followers_url":"https://api.github.com/users/keyurtechy/followers","following_url":"https://api.github.com/users/keyurtechy/following{/other_user}","gists_url":"https://api.github.com/users/keyurtechy/gists{/gist_id}","starred_url":"https://api.github.com/users/keyurtechy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyurtechy/subscriptions","organizations_url":"https://api.github.com/users/keyurtechy/orgs","repos_url":"https://api.github.com/users/keyurtechy/repos","events_url":"https://api.github.com/users/keyurtechy/events{/privacy}","received_events_url":"https://api.github.com/users/keyurtechy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tushargupta51","id":803796,"avatar_url":"https://avatars.githubusercontent.com/u/803796?v=3","gravatar_id":"","url":"https://api.github.com/users/tushargupta51","html_url":"https://github.com/tushargupta51","followers_url":"https://api.github.com/users/tushargupta51/followers","following_url":"https://api.github.com/users/tushargupta51/following{/other_user}","gists_url":"https://api.github.com/users/tushargupta51/gists{/gist_id}","starred_url":"https://api.github.com/users/tushargupta51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushargupta51/subscriptions","organizations_url":"https://api.github.com/users/tushargupta51/orgs","repos_url":"https://api.github.com/users/tushargupta51/repos","events_url":"https://api.github.com/users/tushargupta51/events{/privacy}","received_events_url":"https://api.github.com/users/tushargupta51/received_events","type":"User","site_admin":false},"assignees":[{"login":"tushargupta51","id":803796,"avatar_url":"https://avatars.githubusercontent.com/u/803796?v=3","gravatar_id":"","url":"https://api.github.com/users/tushargupta51","html_url":"https://github.com/tushargupta51","followers_url":"https://api.github.com/users/tushargupta51/followers","following_url":"https://api.github.com/users/tushargupta51/following{/other_user}","gists_url":"https://api.github.com/users/tushargupta51/gists{/gist_id}","starred_url":"https://api.github.com/users/tushargupta51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tushargupta51/subscriptions","organizations_url":"https://api.github.com/users/tushargupta51/orgs","repos_url":"https://api.github.com/users/tushargupta51/repos","events_url":"https://api.github.com/users/tushargupta51/events{/privacy}","received_events_url":"https://api.github.com/users/tushargupta51/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-19T19:15:14Z","updated_at":"2016-10-20T23:48:00Z","closed_at":null,"body":"Hi,\r\n\r\nIn one of our project we are implementing Adal-Angular along with Asp.Net Core, and we are facing one issue. After the user is authenticated with AAD and after we get the token, the Adal framework is going for an infinite loop. It was not redicrecting the user to the correct view that we have defined in our angular routing framework.\r\n\r\nhttps://localhost:44324/#!#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1......\r\n\r\nThe above url, we will be looping indefinitely. \r\n\r\nAs mentioned in one of the github issue related to this infinite loop, it has been asked to use 1.0.11 adal package and we are using the same. We are not facing this issue in all the systems. We are facing this issue in few machines and we wanted to know the root cause of this issue and we need some permanent solution.\r\n\r\nTried below solutions but not working..\r\n\r\n1) We tried even with the information that has been provided at the below github https://gist.github.com/tushargupta51/5fa6d000357120adbc8fd1d5c68853c4 and it’s not working for us\r\n\r\n2) We tried to debug adal angular code, and what we found was, in adal-angular.js, in the method, updateDataFromCache,  _adal.getCachedToken(resource); is returning null\r\n\r\nOne change we have done in adal.angular.js was, in the $get method, once we get the hash from $window.location.hash;, we have written the following line of code\r\n\r\nhash = hash.replace(‘#!’, ‘’), after that infinite loop has stopped, but our application UI has broken\r\n\r\n\r\nCan anyone suggest solution for loop and !character issue.\r\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/comments/255258432","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/419#issuecomment-255258432","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/419","id":255258432,"user":{"login":"keyurtechy","id":19809053,"avatar_url":"https://avatars.githubusercontent.com/u/19809053?v=3","gravatar_id":"","url":"https://api.github.com/users/keyurtechy","html_url":"https://github.com/keyurtechy","followers_url":"https://api.github.com/users/keyurtechy/followers","following_url":"https://api.github.com/users/keyurtechy/following{/other_user}","gists_url":"https://api.github.com/users/keyurtechy/gists{/gist_id}","starred_url":"https://api.github.com/users/keyurtechy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyurtechy/subscriptions","organizations_url":"https://api.github.com/users/keyurtechy/orgs","repos_url":"https://api.github.com/users/keyurtechy/repos","events_url":"https://api.github.com/users/keyurtechy/events{/privacy}","received_events_url":"https://api.github.com/users/keyurtechy/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T23:47:59Z","updated_at":"2016-10-20T23:47:59Z","body":"@tushargupta51 This is the log that got generated. Check whether this is going to help you?\r\n\r\nThu, 20 Oct 2016 23:44:27 GMT:1.0.12-VERBOSE: Location change event from https://localhost:44324/#!#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng…-4b31-bcd0-802d018b4731&session_state=933eacb0-43b5-45e5-a82f-a4abcd0fb60a to https://localhost:44324/#!#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng…-4b31-bcd0-802d018b4731&session_state=933eacb0-43b5-45e5-a82f-a4abcd0fb60a\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: State change event for:#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1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WVfbmFtZSI6Im1hdHRlcmFkbWluQE1TbWF0dGVyLm9ubWljcm9zb2Z0LmNvbSIsInVwbiI6Im1hdHRlcmFkbWluQE1TbWF0dGVyLm9ubWljcm9zb2Z0LmNvbSIsInZlciI6IjEuMCJ9.Tg-SqTDIDM1PnmpOaKb4V8myMAgUEN2MXoPqMzHJIypCCVq_sLJgxKdTtMZUq3jSpW3dR3PenrIUkmmJcfurrXL26xx355AIyi0Rk8FyTf-o0JiBlq3jGthDVEdX0QQG-b_6gCJOhftUDfapiM5kPrJ7vdhZXqVPgFj2SITmMsRRE2_E7XKH76hvd69gIMqcW3wSClr5JC5YXFRzSzH6r8KJOr3kNMD5p0CWhuxs30JqUaFUiuXB8xuBSVg0kCdJACTfStV1g66kw8uZj4vsny4A3BO4qHFL-Stzu2_kjYuPrnehOAAhYm_iQSBh9e_d9rekB2G7SXGPWlxbXi-DKA&state=11978c99-4d42-4b31-bcd0-802d018b4731&session_state=933eacb0-43b5-45e5-a82f-a4abcd0fb60a\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: Start login at:https://localhost:44324/#!#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng…-4b31-bcd0-802d018b4731&session_state=933eacb0-43b5-45e5-a82f-a4abcd0fb60a\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-VERBOSE: Expected state: 6f59f0f6-98df-46d3-9f30-898045cb76d6 startPage:https://localhost:44324/#!#id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng…-4b31-bcd0-802d018b4731&session_state=933eacb0-43b5-45e5-a82f-a4abcd0fb60a\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: Navigate url:https://login.microsoftonline.com/msmatter.onmicrosoft.com/oauth2/authorize…d=ea7feb26-7f89-4e8d-8412-98d230b64bfd&x-client-SKU=Js&x-client-Ver=1.0.12\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: Navigate to:https://login.microsoftonline.com/msmatter.onmicrosoft.com/oauth2/authorize…ient-SKU=Js&x-client-Ver=1.0.12&nonce=01ff509c-4edc-46cf-bde5-973a39da0419\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-VERBOSE: Url: /app/home.html maps to resource: b94f07df-c825-431f-b9c5-b9499e8e9ac1\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: login is in progress.\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: Getting error in the response: {\"method\":\"GET\",\"transformRequest\":[null],\"transformResponse\":[null],\"jsonpCallbackParam\":\"callback\",\"cache\":{},\"headers\":{\"Accept\":\"text/html\"},\"url\":\"/app/home.html\",\"data\":\"login in progress, cancelling the request for /app/home.html\"}\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-VERBOSE: State change error occured. Error: {\"method\":\"GET\",\"transformRequest\":[null],\"transformResponse\":[null],\"jsonpCallbackParam\":\"callback\",\"cache\":{},\"headers\":{\"Accept\":\"text/html\"},\"url\":\"/app/home.html\",\"data\":\"login in progress, cancelling the request for /app/home.html\"}\r\napp.js:23 Thu, 20 Oct 2016 23:44:27 GMT:1.0.12-INFO: Setting defaultPrevented to true if state change error occured because adal rejected a request. Error: login in progress, cancelling the request for /app/home.html"}}
{"actor":{"display_login":"keyurtechy"}}