{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/passport/issues/379","repository_url":"https://api.github.com/repos/laravel/passport","labels_url":"https://api.github.com/repos/laravel/passport/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/laravel/passport/issues/379/comments","events_url":"https://api.github.com/repos/laravel/passport/issues/379/events","html_url":"https://github.com/laravel/passport/issues/379","id":229405783,"number":379,"title":"Stateless access to Passport JSON API (using access_token)","user":{"login":"a8c71","id":13546914,"avatar_url":"https://avatars3.githubusercontent.com/u/13546914?v=4","gravatar_id":"","url":"https://api.github.com/users/a8c71","html_url":"https://github.com/a8c71","followers_url":"https://api.github.com/users/a8c71/followers","following_url":"https://api.github.com/users/a8c71/following{/other_user}","gists_url":"https://api.github.com/users/a8c71/gists{/gist_id}","starred_url":"https://api.github.com/users/a8c71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a8c71/subscriptions","organizations_url":"https://api.github.com/users/a8c71/orgs","repos_url":"https://api.github.com/users/a8c71/repos","events_url":"https://api.github.com/users/a8c71/events{/privacy}","received_events_url":"https://api.github.com/users/a8c71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-17T16:03:14Z","updated_at":"2017-09-03T11:25:48Z","closed_at":null,"author_association":"NONE","body":"I want Users using my API be able to create a new Client using the `POST oauth/clients` that uses by default `web` and `auth` middlewares. \r\n\r\nIs there any way to specify the `auth:api` middleware to specific Passport routes to allow the use of access_tokens instead of web based authentication?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/passport/issues/comments/326799094","html_url":"https://github.com/laravel/passport/issues/379#issuecomment-326799094","issue_url":"https://api.github.com/repos/laravel/passport/issues/379","id":326799094,"user":{"login":"cristitoma","id":28981295,"avatar_url":"https://avatars3.githubusercontent.com/u/28981295?v=4","gravatar_id":"","url":"https://api.github.com/users/cristitoma","html_url":"https://github.com/cristitoma","followers_url":"https://api.github.com/users/cristitoma/followers","following_url":"https://api.github.com/users/cristitoma/following{/other_user}","gists_url":"https://api.github.com/users/cristitoma/gists{/gist_id}","starred_url":"https://api.github.com/users/cristitoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristitoma/subscriptions","organizations_url":"https://api.github.com/users/cristitoma/orgs","repos_url":"https://api.github.com/users/cristitoma/repos","events_url":"https://api.github.com/users/cristitoma/events{/privacy}","received_events_url":"https://api.github.com/users/cristitoma/received_events","type":"User","site_admin":false},"created_at":"2017-09-03T11:25:48Z","updated_at":"2017-09-03T11:25:48Z","author_association":"NONE","body":"Hello, I had the same issue guys, I spent 3 hours on that... All you have to do is to change the way web auth works. And in this case you need to: \r\n'guards' => [\r\n        'web' => [\r\n            'driver' => 'passport',\r\n            'provider' => 'users',\r\n        ],\r\n\r\n        'api' => [\r\n            'driver' => 'passport',\r\n            'provider' => 'users',\r\n        ],\r\n    ],\r\n\r\nin your config/auth.php\r\n\r\nOr the other way is to modify Laravel Passport Routes manually and remove: Passport::routes(); from AuthServiceProvider.php.\r\n\r\nAs a best practice I think is better to not use Passport::routes() if you dont need all of that options (grants.. ). \r\nIn my case I use only a small part of laravel passport, and I created custom routes for Laravel Passport Controllers."}}
{"actor":{"display_login":"cristitoma"}}