{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/369","labels_url":"https://api.github.com/repos/primefaces/primefaces/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primefaces/issues/369/comments","events_url":"https://api.github.com/repos/primefaces/primefaces/issues/369/events","html_url":"https://github.com/primefaces/primefaces/issues/369","id":82446058,"number":369,"title":"Make [AtmosphereRequest] object directly available inside a @PushEndpoint annotated Class","user":{"login":"Maikel-Nait","id":12660331,"avatar_url":"https://avatars.githubusercontent.com/u/12660331?v=3","gravatar_id":"","url":"https://api.github.com/users/Maikel-Nait","html_url":"https://github.com/Maikel-Nait","followers_url":"https://api.github.com/users/Maikel-Nait/followers","following_url":"https://api.github.com/users/Maikel-Nait/following{/other_user}","gists_url":"https://api.github.com/users/Maikel-Nait/gists{/gist_id}","starred_url":"https://api.github.com/users/Maikel-Nait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maikel-Nait/subscriptions","organizations_url":"https://api.github.com/users/Maikel-Nait/orgs","repos_url":"https://api.github.com/users/Maikel-Nait/repos","events_url":"https://api.github.com/users/Maikel-Nait/events{/privacy}","received_events_url":"https://api.github.com/users/Maikel-Nait/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/primefaces/primefaces/labels/enhancement","name":"enhancement","color":"0052cc"},{"url":"https://api.github.com/repos/primefaces/primefaces/labels/push","name":"push","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-29T14:15:24Z","updated_at":"2015-06-10T23:18:50Z","closed_at":"2015-06-10T18:12:01Z","body":"When using a **@PushEndpoint** annotated class, there is no clean and direct way to get access to the **AtmosphereRequest** object, in either the **@OnOpen** or **@OnClose** methods.\r\n\r\nThe **RemoteEndpoint** parameter of these APIs do not provide access to **AtmosphereRequest**\r\n\r\nWhy is this needed ?  An example is when using **Apache Shiro**.\r\nAtmosphere provides an Interceptor called **ShiroInterceptor**, that ensures the **AtmosphereRequest** always contains the right Subject in each HTTP Request.\r\n\r\nHowever, it is impossible to access the Shiro Subject from a **@PushEndpoint** annotated class, as there is no way to get access to the **AtmosphereRequest** through the **RemoteEndpoint** interface.\r\n\r\nYou can check the answer from Jeanfrancois here:\r\nhttps://groups.google.com/forum/#!topic/atmosphere-framework/AdDtsNY7wkg\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/primefaces/primefaces/issues/comments/110944540","html_url":"https://github.com/primefaces/primefaces/issues/369#issuecomment-110944540","issue_url":"https://api.github.com/repos/primefaces/primefaces/issues/369","id":110944540,"user":{"login":"Maikel-Nait","id":12660331,"avatar_url":"https://avatars.githubusercontent.com/u/12660331?v=3","gravatar_id":"","url":"https://api.github.com/users/Maikel-Nait","html_url":"https://github.com/Maikel-Nait","followers_url":"https://api.github.com/users/Maikel-Nait/followers","following_url":"https://api.github.com/users/Maikel-Nait/following{/other_user}","gists_url":"https://api.github.com/users/Maikel-Nait/gists{/gist_id}","starred_url":"https://api.github.com/users/Maikel-Nait/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maikel-Nait/subscriptions","organizations_url":"https://api.github.com/users/Maikel-Nait/orgs","repos_url":"https://api.github.com/users/Maikel-Nait/repos","events_url":"https://api.github.com/users/Maikel-Nait/events{/privacy}","received_events_url":"https://api.github.com/users/Maikel-Nait/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T23:18:50Z","updated_at":"2015-06-10T23:18:50Z","body":"Amazing ... thanks a lot !  :)"}}