{"action":"closed","issue":{"url":"https://api.github.com/repos/mingchen/django-cas-ng/issues/81","labels_url":"https://api.github.com/repos/mingchen/django-cas-ng/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/mingchen/django-cas-ng/issues/81/comments","events_url":"https://api.github.com/repos/mingchen/django-cas-ng/issues/81/events","html_url":"https://github.com/mingchen/django-cas-ng/issues/81","id":128259119,"number":81,"title":"AnonymousUser after login","user":{"login":"shacker","id":102694,"avatar_url":"https://avatars.githubusercontent.com/u/102694?v=3","gravatar_id":"","url":"https://api.github.com/users/shacker","html_url":"https://github.com/shacker","followers_url":"https://api.github.com/users/shacker/followers","following_url":"https://api.github.com/users/shacker/following{/other_user}","gists_url":"https://api.github.com/users/shacker/gists{/gist_id}","starred_url":"https://api.github.com/users/shacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shacker/subscriptions","organizations_url":"https://api.github.com/users/shacker/orgs","repos_url":"https://api.github.com/users/shacker/repos","events_url":"https://api.github.com/users/shacker/events{/privacy}","received_events_url":"https://api.github.com/users/shacker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-22T22:14:20Z","updated_at":"2016-01-26T18:38:32Z","closed_at":"2016-01-26T18:38:32Z","body":"In my template:\r\n\r\n```\r\n    {% if not user.is_authenticated %}\r\n        Login button links to CAS server\r\n     {% endif %}\r\n```\r\nUnder v 3.4.2 this works perfectly. \r\n\r\nAfter upgrading to 3.5.2, the login button still displays after successful login. If I render {{user}} in the template, the user is AnonymousUser after login (same if I `print(request.user)` in the view). If this user now clicks the Login button a second time, CAS recognizes them as pre-authenticated and logs them in immediately. \r\n\r\nIt seems like the actual django login() call is no longer being invoked. \r\n\r\nDowngrading for now. "}}