{"action":"created","issue":{"url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/21","repository_url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity","labels_url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/21/comments","events_url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/21/events","html_url":"https://github.com/philipsorst/angular-rest-springsecurity/issues/21","id":116911920,"number":21,"title":"What is the \" authentication.setDetails(...) \" in the custom Filter used for ?","user":{"login":"skywalkerlucas","id":3282346,"avatar_url":"https://avatars.githubusercontent.com/u/3282346?v=3","gravatar_id":"","url":"https://api.github.com/users/skywalkerlucas","html_url":"https://github.com/skywalkerlucas","followers_url":"https://api.github.com/users/skywalkerlucas/followers","following_url":"https://api.github.com/users/skywalkerlucas/following{/other_user}","gists_url":"https://api.github.com/users/skywalkerlucas/gists{/gist_id}","starred_url":"https://api.github.com/users/skywalkerlucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skywalkerlucas/subscriptions","organizations_url":"https://api.github.com/users/skywalkerlucas/orgs","repos_url":"https://api.github.com/users/skywalkerlucas/repos","events_url":"https://api.github.com/users/skywalkerlucas/events{/privacy}","received_events_url":"https://api.github.com/users/skywalkerlucas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T08:52:46Z","updated_at":"2016-04-25T13:21:27Z","closed_at":"2016-04-24T22:06:40Z","body":"Hi, I want to say this project is really good and it illuminates on how back-end Spring Security supports token based authentication.\r\n\r\nBut I want to ask, in the  \"AuthenticationTokenProcessingFilter\", there is a line:\r\n\r\n    authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(httpRequest));\r\n\r\nIt seems this line is to load the Session info for current request for the server side. However, as we all know, this project relies on token based authentication, and hence loading the session in the server is no use any more (I guess loading the session here is essential if we use the traditional session_id authentication).\r\n\r\nAnd if I remove this line from the source and run this project, the authentication works normal, good as well.\r\n\r\nSo I just want to clarify the use of this line here.\r\n\r\nThe project is not updated for long, but I think this project illuminates much about token based authentication in Spring Java, which rare projects in Github cover and explain clearly like this one, so I am very thankful, and I am digging into this project.\r\n\r\nAnyone helps on this? Thank you!\r\n"},"comment":{"url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/comments/214321751","html_url":"https://github.com/philipsorst/angular-rest-springsecurity/issues/21#issuecomment-214321751","issue_url":"https://api.github.com/repos/philipsorst/angular-rest-springsecurity/issues/21","id":214321751,"user":{"login":"skywalkerlucas","id":3282346,"avatar_url":"https://avatars.githubusercontent.com/u/3282346?v=3","gravatar_id":"","url":"https://api.github.com/users/skywalkerlucas","html_url":"https://github.com/skywalkerlucas","followers_url":"https://api.github.com/users/skywalkerlucas/followers","following_url":"https://api.github.com/users/skywalkerlucas/following{/other_user}","gists_url":"https://api.github.com/users/skywalkerlucas/gists{/gist_id}","starred_url":"https://api.github.com/users/skywalkerlucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skywalkerlucas/subscriptions","organizations_url":"https://api.github.com/users/skywalkerlucas/orgs","repos_url":"https://api.github.com/users/skywalkerlucas/repos","events_url":"https://api.github.com/users/skywalkerlucas/events{/privacy}","received_events_url":"https://api.github.com/users/skywalkerlucas/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T13:21:27Z","updated_at":"2016-04-25T13:21:27Z","body":"Thanks."}}