{"action":"created","issue":{"url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/39","repository_url":"https://api.github.com/repos/aacotroneo/laravel-saml2","labels_url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/39/comments","events_url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/39/events","html_url":"https://github.com/aacotroneo/laravel-saml2/issues/39","id":155062195,"number":39,"title":"Authentication persistence","user":{"login":"calico343","id":2116290,"avatar_url":"https://avatars.githubusercontent.com/u/2116290?v=3","gravatar_id":"","url":"https://api.github.com/users/calico343","html_url":"https://github.com/calico343","followers_url":"https://api.github.com/users/calico343/followers","following_url":"https://api.github.com/users/calico343/following{/other_user}","gists_url":"https://api.github.com/users/calico343/gists{/gist_id}","starred_url":"https://api.github.com/users/calico343/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calico343/subscriptions","organizations_url":"https://api.github.com/users/calico343/orgs","repos_url":"https://api.github.com/users/calico343/repos","events_url":"https://api.github.com/users/calico343/events{/privacy}","received_events_url":"https://api.github.com/users/calico343/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-05-16T16:06:01Z","updated_at":"2016-09-29T13:39:25Z","closed_at":null,"body":"Hi Alejandro\r\n\r\nI've successfully integrated the library in Laravel 5.0, got the login/redirecting working properly, but cannot access SSO session persistence. What this means is that the isAuthenticated() function in Saml2Auth.php returns true if it is executed in the same request where the login process succeeds, but false at any other time, even if it's in the next request immediately after the successful login. \r\n\r\nThis makes it very hard to design my middleware properly, because ideally I would run the isAuthenticated() function as a check and only allow the Saml2::login() to proceed when the isAuthenticated() function returns false. However, it always returns false, thus causing infinite looping redirects, because the login function is called on a valid session on all requests after the initial login. \r\n\r\nHave you had this problem before? \r\n\r\nThanks\r\n\r\nJohn"},"comment":{"url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/comments/250468495","html_url":"https://github.com/aacotroneo/laravel-saml2/issues/39#issuecomment-250468495","issue_url":"https://api.github.com/repos/aacotroneo/laravel-saml2/issues/39","id":250468495,"user":{"login":"izhekov","id":8613280,"avatar_url":"https://avatars.githubusercontent.com/u/8613280?v=3","gravatar_id":"","url":"https://api.github.com/users/izhekov","html_url":"https://github.com/izhekov","followers_url":"https://api.github.com/users/izhekov/followers","following_url":"https://api.github.com/users/izhekov/following{/other_user}","gists_url":"https://api.github.com/users/izhekov/gists{/gist_id}","starred_url":"https://api.github.com/users/izhekov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izhekov/subscriptions","organizations_url":"https://api.github.com/users/izhekov/orgs","repos_url":"https://api.github.com/users/izhekov/repos","events_url":"https://api.github.com/users/izhekov/events{/privacy}","received_events_url":"https://api.github.com/users/izhekov/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T13:39:25Z","updated_at":"2016-09-29T13:39:25Z","body":"Check the session store you use is working?\r\nCan you send me your routes (i.e. web.php or wherever they are), the saml2_settings.php and Kernel.php ?"}}
{"actor":{"display_login":"izhekov"}}