{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt-community/auth-module/issues/24","repository_url":"https://api.github.com/repos/nuxt-community/auth-module","labels_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/24/comments","events_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/24/events","html_url":"https://github.com/nuxt-community/auth-module/issues/24","id":282718409,"node_id":"MDU6SXNzdWUyODI3MTg0MDk=","number":24,"title":"laravel passport example","user":{"login":"darkwoods-","id":4960807,"node_id":"MDQ6VXNlcjQ5NjA4MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/4960807?v=4","gravatar_id":"","url":"https://api.github.com/users/darkwoods-","html_url":"https://github.com/darkwoods-","followers_url":"https://api.github.com/users/darkwoods-/followers","following_url":"https://api.github.com/users/darkwoods-/following{/other_user}","gists_url":"https://api.github.com/users/darkwoods-/gists{/gist_id}","starred_url":"https://api.github.com/users/darkwoods-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkwoods-/subscriptions","organizations_url":"https://api.github.com/users/darkwoods-/orgs","repos_url":"https://api.github.com/users/darkwoods-/repos","events_url":"https://api.github.com/users/darkwoods-/events{/privacy}","received_events_url":"https://api.github.com/users/darkwoods-/received_events","type":"User","site_admin":false},"labels":[{"id":683256286,"node_id":"MDU6TGFiZWw2ODMyNTYyODY=","url":"https://api.github.com/repos/nuxt-community/auth-module/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":683256288,"node_id":"MDU6TGFiZWw2ODMyNTYyODg=","url":"https://api.github.com/repos/nuxt-community/auth-module/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-17T19:46:43Z","updated_at":"2018-07-22T23:57:25Z","closed_at":null,"author_association":"NONE","body":"Is there anyone who is willing to share/show a full example of this with Laravel Passport?\r\nI mean like a repository or even a small tutorial about it all?\r\n\r\nSorry for my n00bity here but I think this would help many people like me.\r\n\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This question is available on <a href=\"https://nuxtjs.cmty.io\">Nuxt.js</a> community (<a href=\"https://nuxtjs.cmty.io/nuxt-community/auth-module/issues/c18\">#c18</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt-community/auth-module/issues/comments/406907192","html_url":"https://github.com/nuxt-community/auth-module/issues/24#issuecomment-406907192","issue_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/24","id":406907192,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjkwNzE5Mg==","user":{"login":"jmschneider","id":3977552,"node_id":"MDQ6VXNlcjM5Nzc1NTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3977552?v=4","gravatar_id":"","url":"https://api.github.com/users/jmschneider","html_url":"https://github.com/jmschneider","followers_url":"https://api.github.com/users/jmschneider/followers","following_url":"https://api.github.com/users/jmschneider/following{/other_user}","gists_url":"https://api.github.com/users/jmschneider/gists{/gist_id}","starred_url":"https://api.github.com/users/jmschneider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmschneider/subscriptions","organizations_url":"https://api.github.com/users/jmschneider/orgs","repos_url":"https://api.github.com/users/jmschneider/repos","events_url":"https://api.github.com/users/jmschneider/events{/privacy}","received_events_url":"https://api.github.com/users/jmschneider/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T23:57:25Z","updated_at":"2018-07-22T23:57:25Z","author_association":"CONTRIBUTOR","body":"Hey @mwargan,\r\n\r\nYou are correct, in the final implementation of  the `laravel.passport` provider it sends the request to the Nuxt server to [attach the client secret and proxy it](https://github.com/nuxt-community/auth-module/blob/dev/lib/providers/_utils.js#L8-L70) on to Laravel Passport. I think you might be able to do something with an [implicit grant token](https://laravel.com/docs/5.6/passport#implicit-grant-tokens) in order to authenticate without a client secret. I don't remember exactly how you would set up the Nuxt auth side of things.\r\n\r\nThere are also some additional options you can override in the settings you can see [here](https://github.com/nuxt-community/auth-module/blob/dev/lib/providers/laravel.passport.js). I believe the `authorization_endpoint` option is setting where the initial request goes. Changing that to point directly to the Laravel Passport endpoint might work."}}
{"actor":{"display_login":"jmschneider"}}