{"action":"created","issue":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/484","repository_url":"https://api.github.com/repos/tymondesigns/jwt-auth","labels_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/484/comments","events_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/484/events","html_url":"https://github.com/tymondesigns/jwt-auth/issues/484","id":130604242,"number":484,"title":"JWT + Entrust","user":{"login":"amilgaul","id":7766656,"avatar_url":"https://avatars.githubusercontent.com/u/7766656?v=3","gravatar_id":"","url":"https://api.github.com/users/amilgaul","html_url":"https://github.com/amilgaul","followers_url":"https://api.github.com/users/amilgaul/followers","following_url":"https://api.github.com/users/amilgaul/following{/other_user}","gists_url":"https://api.github.com/users/amilgaul/gists{/gist_id}","starred_url":"https://api.github.com/users/amilgaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amilgaul/subscriptions","organizations_url":"https://api.github.com/users/amilgaul/orgs","repos_url":"https://api.github.com/users/amilgaul/repos","events_url":"https://api.github.com/users/amilgaul/events{/privacy}","received_events_url":"https://api.github.com/users/amilgaul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-02T07:48:58Z","updated_at":"2016-02-04T05:17:24Z","closed_at":null,"body":"Hi Tymon,\r\n\r\nIs there a chance that Entrust can integrate to jwt? jwt for authentication and Entrust for role based permission? How can i do it?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/comments/179644299","html_url":"https://github.com/tymondesigns/jwt-auth/issues/484#issuecomment-179644299","issue_url":"https://api.github.com/repos/tymondesigns/jwt-auth/issues/484","id":179644299,"user":{"login":"tdhsmith","id":1791252,"avatar_url":"https://avatars.githubusercontent.com/u/1791252?v=3","gravatar_id":"","url":"https://api.github.com/users/tdhsmith","html_url":"https://github.com/tdhsmith","followers_url":"https://api.github.com/users/tdhsmith/followers","following_url":"https://api.github.com/users/tdhsmith/following{/other_user}","gists_url":"https://api.github.com/users/tdhsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tdhsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdhsmith/subscriptions","organizations_url":"https://api.github.com/users/tdhsmith/orgs","repos_url":"https://api.github.com/users/tdhsmith/repos","events_url":"https://api.github.com/users/tdhsmith/events{/privacy}","received_events_url":"https://api.github.com/users/tdhsmith/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T05:17:24Z","updated_at":"2016-02-04T05:17:24Z","body":"Calling `JWTAuth::authenticate()` will already do that for you because, with the default settings, it in turn calls `Auth::onceUsingId($id)`, [which will set it internally](https://github.com/laravel/framework/blob/5.2/src/Illuminate/Auth/SessionGuard.php#L488).\r\n\r\nIf you're just looking for a manual way to set it, you can use `Auth::setUser($user)`.\r\n\r\nThere are plenty of other ways, too. Check out [the official docs on authentication](https://laravel.com/docs/5.2/authentication) for some examples..."}}