{"action":"created","issue":{"url":"https://api.github.com/repos/XavRsl/Cas/issues/45","repository_url":"https://api.github.com/repos/XavRsl/Cas","labels_url":"https://api.github.com/repos/XavRsl/Cas/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/XavRsl/Cas/issues/45/comments","events_url":"https://api.github.com/repos/XavRsl/Cas/issues/45/events","html_url":"https://github.com/XavRsl/Cas/issues/45","id":309655690,"number":45,"title":"How to return null when not auth","user":{"login":"adispartadev","id":16744864,"avatar_url":"https://avatars1.githubusercontent.com/u/16744864?v=4","gravatar_id":"","url":"https://api.github.com/users/adispartadev","html_url":"https://github.com/adispartadev","followers_url":"https://api.github.com/users/adispartadev/followers","following_url":"https://api.github.com/users/adispartadev/following{/other_user}","gists_url":"https://api.github.com/users/adispartadev/gists{/gist_id}","starred_url":"https://api.github.com/users/adispartadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adispartadev/subscriptions","organizations_url":"https://api.github.com/users/adispartadev/orgs","repos_url":"https://api.github.com/users/adispartadev/repos","events_url":"https://api.github.com/users/adispartadev/events{/privacy}","received_events_url":"https://api.github.com/users/adispartadev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-29T07:59:34Z","updated_at":"2018-04-01T11:30:00Z","closed_at":null,"author_association":"NONE","body":"I use `\\Cas::authenticate();` and then `$user = \\Cas::getCurrentUser();` to get current login user as well. But, I want to get `null` when user not auth yet without redirect to CAS_LOGIN_REDIRECT.\r\n\r\nHow can I do that?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/XavRsl/Cas/issues/comments/377780378","html_url":"https://github.com/XavRsl/Cas/issues/45#issuecomment-377780378","issue_url":"https://api.github.com/repos/XavRsl/Cas/issues/45","id":377780378,"user":{"login":"adispartadev","id":16744864,"avatar_url":"https://avatars1.githubusercontent.com/u/16744864?v=4","gravatar_id":"","url":"https://api.github.com/users/adispartadev","html_url":"https://github.com/adispartadev","followers_url":"https://api.github.com/users/adispartadev/followers","following_url":"https://api.github.com/users/adispartadev/following{/other_user}","gists_url":"https://api.github.com/users/adispartadev/gists{/gist_id}","starred_url":"https://api.github.com/users/adispartadev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adispartadev/subscriptions","organizations_url":"https://api.github.com/users/adispartadev/orgs","repos_url":"https://api.github.com/users/adispartadev/repos","events_url":"https://api.github.com/users/adispartadev/events{/privacy}","received_events_url":"https://api.github.com/users/adispartadev/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T11:30:00Z","updated_at":"2018-04-01T11:30:00Z","author_association":"NONE","body":"I solved this problem by using this function to return true or false when user is login or not without redirect to sso page when user not login yet.\r\n\r\n`$isLogin = Cas::isAuthenticated();`\r\n"}}
{"actor":{"display_login":"adispartadev"}}