{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/456","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/456/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/456/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/456/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/456","id":193994915,"number":456,"title":"Silent sign-in request was sent but no user is signed in","user":{"login":"XavierDupessey","id":1449888,"avatar_url":"https://avatars.githubusercontent.com/u/1449888?v=3","gravatar_id":"","url":"https://api.github.com/users/XavierDupessey","html_url":"https://github.com/XavierDupessey","followers_url":"https://api.github.com/users/XavierDupessey/followers","following_url":"https://api.github.com/users/XavierDupessey/following{/other_user}","gists_url":"https://api.github.com/users/XavierDupessey/gists{/gist_id}","starred_url":"https://api.github.com/users/XavierDupessey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XavierDupessey/subscriptions","organizations_url":"https://api.github.com/users/XavierDupessey/orgs","repos_url":"https://api.github.com/users/XavierDupessey/repos","events_url":"https://api.github.com/users/XavierDupessey/events{/privacy}","received_events_url":"https://api.github.com/users/XavierDupessey/received_events","type":"User","site_admin":false},"labels":[{"id":336022331,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/labels/Investigating","name":"Investigating","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"rohitnarula7176","id":19417198,"avatar_url":"https://avatars.githubusercontent.com/u/19417198?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitnarula7176","html_url":"https://github.com/rohitnarula7176","followers_url":"https://api.github.com/users/rohitnarula7176/followers","following_url":"https://api.github.com/users/rohitnarula7176/following{/other_user}","gists_url":"https://api.github.com/users/rohitnarula7176/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitnarula7176/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitnarula7176/subscriptions","organizations_url":"https://api.github.com/users/rohitnarula7176/orgs","repos_url":"https://api.github.com/users/rohitnarula7176/repos","events_url":"https://api.github.com/users/rohitnarula7176/events{/privacy}","received_events_url":"https://api.github.com/users/rohitnarula7176/received_events","type":"User","site_admin":false},"assignees":[{"login":"rohitnarula7176","id":19417198,"avatar_url":"https://avatars.githubusercontent.com/u/19417198?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitnarula7176","html_url":"https://github.com/rohitnarula7176","followers_url":"https://api.github.com/users/rohitnarula7176/followers","following_url":"https://api.github.com/users/rohitnarula7176/following{/other_user}","gists_url":"https://api.github.com/users/rohitnarula7176/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitnarula7176/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitnarula7176/subscriptions","organizations_url":"https://api.github.com/users/rohitnarula7176/orgs","repos_url":"https://api.github.com/users/rohitnarula7176/repos","events_url":"https://api.github.com/users/rohitnarula7176/events{/privacy}","received_events_url":"https://api.github.com/users/rohitnarula7176/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-12-07T09:13:06Z","updated_at":"2016-12-14T13:27:16Z","closed_at":null,"body":"Hello,\r\n\r\nI get an error with adal and adal-angular on Chrome with this use case:\r\n\r\n1. A user attemps to access the app securized with adal on the root URL. A ui router rule redirects him to the real home page (/tickets/) which needs authentication and has 2 resolves invoking protected HTTP requests:\r\n\r\n    ```\r\n    $urlRouterProvider.when('', '/tickets/')\r\n\r\n    $stateProvider.state('tickets', {\r\n        'abstract': true,\r\n        'template': '<ui-view />',\r\n        'url': '/tickets',\r\n    })\r\n\r\n    $stateProvider.state('tickets.index', {\r\n        'component': 'hasccTicketsIndex',\r\n        'requireADLogin': true,\r\n        'resolve': {\r\n            'allOpenTickets': allOpenTicketsResolve,\r\n            'userTickets': userTicketsResolve,\r\n        },\r\n        'url': '/',\r\n    })\r\n    ```\r\n\r\n2. The user is redirected to login.microsoftonline.com (as expected) and logs in. It is redirected to the app page and everything works fine.\r\n\r\n3. The user stops using the app and closes its Chrome browser. He waits more than 1 hour (the token expiration is 1 hour long).\r\n\r\n4. The user starts the app, on the root URL. Nothing happends and an error appears in the logs:\r\n\r\n> AADSTS50058: A silent sign-in request was sent but no user is signed in. The cookies used to represent the user's session were not sent in the request to Azure AD. This can happen if the user is using Internet Explorer or Edge, and the web app sending the silent sign-in request is in different IE security zone than the Azure AD endpoint (login.microsoftonline.com).\r\n> Trace ID: aa7c06e6-a433-4e83-be32-31aae1c17a07\r\n> Correlation ID: b50d6b22-320e-4a0a-872c-31c6b3450974\r\n> Timestamp: 2016-12-07 08:12:51Z\r\n\r\nEnvironment:\r\n- Chrome v54.0.2840.99 m\r\n- Angular v1.5.8\r\n- Adal-angular and AdalJs v1.0.12 (I am going to test with the v1.0.13 later today)\r\n\r\nDo you know why I get this error and how to fix this problem?\r\n\r\nXavier"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/comments/267033247","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/456#issuecomment-267033247","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/456","id":267033247,"user":{"login":"XavierDupessey","id":1449888,"avatar_url":"https://avatars.githubusercontent.com/u/1449888?v=3","gravatar_id":"","url":"https://api.github.com/users/XavierDupessey","html_url":"https://github.com/XavierDupessey","followers_url":"https://api.github.com/users/XavierDupessey/followers","following_url":"https://api.github.com/users/XavierDupessey/following{/other_user}","gists_url":"https://api.github.com/users/XavierDupessey/gists{/gist_id}","starred_url":"https://api.github.com/users/XavierDupessey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XavierDupessey/subscriptions","organizations_url":"https://api.github.com/users/XavierDupessey/orgs","repos_url":"https://api.github.com/users/XavierDupessey/repos","events_url":"https://api.github.com/users/XavierDupessey/events{/privacy}","received_events_url":"https://api.github.com/users/XavierDupessey/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T13:27:16Z","updated_at":"2016-12-14T13:27:16Z","body":"Every routes of the app are protected with `'requireADLogin': true` and I am still not redirected to login page if:\r\n\r\n1. the cookie related to my login session with AAD got deleted\r\nand\r\n2. the token in the cache is not valid because expired\r\n"}}
{"actor":{"display_login":"XavierDupessey"}}