{"action":"created","issue":{"url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/32","labels_url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/32/comments","events_url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/32/events","html_url":"https://github.com/Jasig/dotnet-cas-client/issues/32","id":108639638,"number":32,"title":"Static CurrentPrincipal leads to shared authentication between threads","user":{"login":"tcalvert","id":4719352,"avatar_url":"https://avatars.githubusercontent.com/u/4719352?v=3","gravatar_id":"","url":"https://api.github.com/users/tcalvert","html_url":"https://github.com/tcalvert","followers_url":"https://api.github.com/users/tcalvert/followers","following_url":"https://api.github.com/users/tcalvert/following{/other_user}","gists_url":"https://api.github.com/users/tcalvert/gists{/gist_id}","starred_url":"https://api.github.com/users/tcalvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcalvert/subscriptions","organizations_url":"https://api.github.com/users/tcalvert/orgs","repos_url":"https://api.github.com/users/tcalvert/repos","events_url":"https://api.github.com/users/tcalvert/events{/privacy}","received_events_url":"https://api.github.com/users/tcalvert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T11:29:45Z","updated_at":"2015-09-29T07:46:26Z","closed_at":null,"body":"Just got bitten by this today : once a user was authenticated on my ASP.NET website, everyone shared his/her identity!\r\n\r\nThis was due to the currentPrincipal variable being shared between requests (even though there is the ThreadStatic annotation).\r\n\r\nI fixed it by making the following change :\r\n\r\n    public static ICasPrincipal CurrentPrincipal\r\n        {\r\n            //get { return currentPrincipal; }\r\n            get { return Thread.CurrentPrincipal as ICasPrincipal; }\r\n        }\r\n"},"comment":{"url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/comments/143975692","html_url":"https://github.com/Jasig/dotnet-cas-client/issues/32#issuecomment-143975692","issue_url":"https://api.github.com/repos/Jasig/dotnet-cas-client/issues/32","id":143975692,"user":{"login":"tcalvert","id":4719352,"avatar_url":"https://avatars.githubusercontent.com/u/4719352?v=3","gravatar_id":"","url":"https://api.github.com/users/tcalvert","html_url":"https://github.com/tcalvert","followers_url":"https://api.github.com/users/tcalvert/followers","following_url":"https://api.github.com/users/tcalvert/following{/other_user}","gists_url":"https://api.github.com/users/tcalvert/gists{/gist_id}","starred_url":"https://api.github.com/users/tcalvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcalvert/subscriptions","organizations_url":"https://api.github.com/users/tcalvert/orgs","repos_url":"https://api.github.com/users/tcalvert/repos","events_url":"https://api.github.com/users/tcalvert/events{/privacy}","received_events_url":"https://api.github.com/users/tcalvert/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T07:46:26Z","updated_at":"2015-09-29T07:46:26Z","body":"See PR #33 "}}