{"action":"created","issue":{"url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12","labels_url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12/comments","events_url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12/events","html_url":"https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12","id":51756738,"number":12,"title":"Infinite loop on adding Authorize attribute to Home Controller","user":{"login":"anujc","id":7397703,"avatar_url":"https://avatars.githubusercontent.com/u/7397703?v=3","gravatar_id":"","url":"https://api.github.com/users/anujc","html_url":"https://github.com/anujc","followers_url":"https://api.github.com/users/anujc/followers","following_url":"https://api.github.com/users/anujc/following{/other_user}","gists_url":"https://api.github.com/users/anujc/gists{/gist_id}","starred_url":"https://api.github.com/users/anujc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujc/subscriptions","organizations_url":"https://api.github.com/users/anujc/orgs","repos_url":"https://api.github.com/users/anujc/repos","events_url":"https://api.github.com/users/anujc/events{/privacy}","received_events_url":"https://api.github.com/users/anujc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-12T00:27:18Z","updated_at":"2015-06-23T19:25:15Z","closed_at":null,"body":"I added Authorize attribute to Home Controller and made no other changes.\r\nI then deployed it to azurewebsites\r\nI am was able to login fine for few minutes\r\nAfter that if I try to login to the site InPrivate, I see an infinite loop where the app redirects to login.windows.net, receives an auth code and again redirects to login.windows.net\r\n\r\nI am not an admin on the tenant where I created an app. I am a user in the tenant.\r\nMy tenant is a federated tenant"},"comment":{"url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/comments/114616304","html_url":"https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12#issuecomment-114616304","issue_url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12","id":114616304,"user":{"login":"levalencia","id":6962857,"avatar_url":"https://avatars.githubusercontent.com/u/6962857?v=3","gravatar_id":"","url":"https://api.github.com/users/levalencia","html_url":"https://github.com/levalencia","followers_url":"https://api.github.com/users/levalencia/followers","following_url":"https://api.github.com/users/levalencia/following{/other_user}","gists_url":"https://api.github.com/users/levalencia/gists{/gist_id}","starred_url":"https://api.github.com/users/levalencia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levalencia/subscriptions","organizations_url":"https://api.github.com/users/levalencia/orgs","repos_url":"https://api.github.com/users/levalencia/repos","events_url":"https://api.github.com/users/levalencia/events{/privacy}","received_events_url":"https://api.github.com/users/levalencia/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T19:25:15Z","updated_at":"2015-06-23T19:25:15Z","body":"not sure if this helps, but I was able to make it work with VS 2013, with 2015 is still the same problem.\r\n\r\nhttp://www.luisevalencia.com/2015/06/02/using-azure-aad-graph-office-365-add-in-with-groups-authorization/\r\n\r\nhttps://github.com/OfficeDev/PnP/tree/master/Samples/AzureAD.GroupAuthorization"}}