{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/passport/issues/63","repository_url":"https://api.github.com/repos/laravel/passport","labels_url":"https://api.github.com/repos/laravel/passport/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/laravel/passport/issues/63/comments","events_url":"https://api.github.com/repos/laravel/passport/issues/63/events","html_url":"https://github.com/laravel/passport/pull/63","id":174703234,"number":63,"title":"Add implicit flow grant type","user":{"login":"RyanTheAllmighty","id":1723537,"avatar_url":"https://avatars.githubusercontent.com/u/1723537?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanTheAllmighty","html_url":"https://github.com/RyanTheAllmighty","followers_url":"https://api.github.com/users/RyanTheAllmighty/followers","following_url":"https://api.github.com/users/RyanTheAllmighty/following{/other_user}","gists_url":"https://api.github.com/users/RyanTheAllmighty/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanTheAllmighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanTheAllmighty/subscriptions","organizations_url":"https://api.github.com/users/RyanTheAllmighty/orgs","repos_url":"https://api.github.com/users/RyanTheAllmighty/repos","events_url":"https://api.github.com/users/RyanTheAllmighty/events{/privacy}","received_events_url":"https://api.github.com/users/RyanTheAllmighty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-02T08:05:44Z","updated_at":"2016-10-12T18:38:05Z","closed_at":"2016-09-09T14:43:17Z","pull_request":{"url":"https://api.github.com/repos/laravel/passport/pulls/63","html_url":"https://github.com/laravel/passport/pull/63","diff_url":"https://github.com/laravel/passport/pull/63.diff","patch_url":"https://github.com/laravel/passport/pull/63.patch"},"body":"This adds in the implicit grant type.\r\n\r\nSame process as the AuthCode grant type except the `response_type` url attribute is set to `token` rather than `code`.\r\n\r\nOnce a user authorises the request they will be redirected back to the redirect url with the `access_token` directly in the url hash.\r\n\r\nUseful for client side JavaScript applications that need to be able to generate an access token but don't have a server side component to retrieve the access token from a code authorization.\r\n\r\nThis is by default disabled due to many applications possibly not needing or wanting this type of grant. To enable it is as simple as defining a static call in the boot method of `AuthServiceProvider` as you do for pruning of auth tokens:\r\n\r\n```php\r\n    /**\r\n     * Register any authentication / authorization services.\r\n     *\r\n     * @return void\r\n     */\r\n    public function boot()\r\n    {\r\n        $this->registerPolicies();\r\n\r\n        Passport::pruneRevokedTokens();\r\n\r\n        Passport::enableImplicitFlow();\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/passport/issues/comments/253300138","html_url":"https://github.com/laravel/passport/pull/63#issuecomment-253300138","issue_url":"https://api.github.com/repos/laravel/passport/issues/63","id":253300138,"user":{"login":"acacha","id":4015406,"avatar_url":"https://avatars.githubusercontent.com/u/4015406?v=3","gravatar_id":"","url":"https://api.github.com/users/acacha","html_url":"https://github.com/acacha","followers_url":"https://api.github.com/users/acacha/followers","following_url":"https://api.github.com/users/acacha/following{/other_user}","gists_url":"https://api.github.com/users/acacha/gists{/gist_id}","starred_url":"https://api.github.com/users/acacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acacha/subscriptions","organizations_url":"https://api.github.com/users/acacha/orgs","repos_url":"https://api.github.com/users/acacha/repos","events_url":"https://api.github.com/users/acacha/events{/privacy}","received_events_url":"https://api.github.com/users/acacha/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T18:38:05Z","updated_at":"2016-10-12T18:38:05Z","body":"@taylorotwell please reopen this PR"}}
{"actor":{"display_login":"acacha"}}