{"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":13,"created_at":"2014-12-12T00:27:18Z","updated_at":"2015-07-01T16:15:22Z","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/117733822","html_url":"https://github.com/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12#issuecomment-117733822","issue_url":"https://api.github.com/repos/AzureADSamples/WebApp-OpenIDConnect-DotNet/issues/12","id":117733822,"user":{"login":"dstrockis","id":1951260,"avatar_url":"https://avatars.githubusercontent.com/u/1951260?v=3","gravatar_id":"","url":"https://api.github.com/users/dstrockis","html_url":"https://github.com/dstrockis","followers_url":"https://api.github.com/users/dstrockis/followers","following_url":"https://api.github.com/users/dstrockis/following{/other_user}","gists_url":"https://api.github.com/users/dstrockis/gists{/gist_id}","starred_url":"https://api.github.com/users/dstrockis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstrockis/subscriptions","organizations_url":"https://api.github.com/users/dstrockis/orgs","repos_url":"https://api.github.com/users/dstrockis/repos","events_url":"https://api.github.com/users/dstrockis/events{/privacy}","received_events_url":"https://api.github.com/users/dstrockis/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T16:15:22Z","updated_at":"2015-07-01T16:15:22Z","body":"Thanks @apozgaj.  Just for the record, the Kentor Owin Cookie Saver addresses this known issue in the OWIN middleware: https://katanaproject.codeplex.com/workitem/197"}}