This is a great playlist! Loving your channel, and the fact that it's something different to the usual "make a to-do-list" CRUD, or make a front end but with a random API that doesn't actually store data! Keep up the great work!
@NathanBudd5 жыл бұрын
This Auth is great, but any plans on implementing JWT with this setup?
@drehimself5 жыл бұрын
JWT would be very similar to what Passport does, so I probably won't cover that.
@dbybanez3 жыл бұрын
Nice tutorial! Question, do you have an example for Sanctum?
@nightkiller19925 жыл бұрын
Very nice playlist man. Keep up the good work. Thanks
@drehimself5 жыл бұрын
Thanks for watching!
@joshbarros19953 жыл бұрын
Wonderful video! Thanks a lot! Do you intend to teach us how to use GraphQL with Nuxt and Laravel also?
@bensaadrayen2463 жыл бұрын
Great video, thanks but I've a question, is this package ' lighthouse-graphql-passport-auth' support Lumen version 8?
@MrFranciscoooooo3 жыл бұрын
Hi andre, I have a question: Should the refresh token return user information too ? many thanks
@muhsinzyne6954 жыл бұрын
hello, can you do a video on laravel graphql subscription
@josuebarros-desenvolvedorw24904 жыл бұрын
So... Passport, Sanctum and Fortify are used almost 100% of times for a SPA + API project, right?
@kevinpallado96385 жыл бұрын
How did you do the login query? Im a bit confuse
@rosalialive65694 жыл бұрын
Hey Andre , i did all of that and its working fine , but when i migrate:fresh --seed and generate new keys , requeste resturn the token fine but when i try to return the user info with that token an error popup "message": "Target class [App\\Http\\Middleware\\AddAuthHeader] does not exist.",
@rosalialive65694 жыл бұрын
Nvm i didnt update the new Client secret in .env
@subinshakya98775 жыл бұрын
In my case, i tried this and saw "Schema is not configured for mutations." but then i went to the schema config and changed the schema path to base_path('graphql/auth.graphql') from base_path('graphql/schema.graphql'), but i again got the error saying "error": "Unexpected token < in JSON at position 0". What am i doing wrong? P.S. i am using lighthouse v3.4 and lighthouse-graphql-passport-auth v1.2. @Andre
@subinshakya98775 жыл бұрын
solved it! I had to change the `schema` value from the `lighthouse-graphql-passport.php` config, instead i changed that value from the lighthouse config. Silly Mistake!
@drehimself5 жыл бұрын
Glad you figured it out!
@eriknelson62684 жыл бұрын
Hi Andre, I am running into an error when passing in valid user credentials in graphql playground. Even when passing a username and password that I have in my seeded database I receive an authentication exception error "Incorrect username or password". I get the same error when following the instructions from this setup as well dev.to/joselfonseca/graphql-auth-with-passport-and-lighthouse-php-14g5 Is there additional configuration I have to do for user data? My seeded user data includes name, email and password the rest of the fields are null.
@eriknelson62684 жыл бұрын
I have found the issue. When I would re-seed the database, it would remove my passport password client. I am able to authenticate users now!
@timetosleep80554 жыл бұрын
@@eriknelson6268 I've the same issue but this doesn't work for me.. the passport password client is in my database though.
@eriknelson62684 жыл бұрын
@@timetosleep8055 try getting a new passport password client and setting it in your .env PASSPORT_CLIENT_ID=1 PASSPORT_CLIENT_SECRET= your_secret Then re seed your database and make sure it is added to your oauth_clients table. If it is not there insert it with this SQL statement INSERT INTO `oauth_clients` (`name`, `secret`, `redirect`, `personal_access_client`, `password_client`,`revoked`) VALUES ('your client name', 'your secret', 'localhost', '0', '1','0');
@timetosleep80554 жыл бұрын
@@eriknelson6268 It was a stupid mistake.. I have my models in a 'Models' folder. I had to change this in the auth.php file from App\User to App\Models\User, but thanks for the help :)
@VuNguyen-lj8us5 жыл бұрын
Hi, firstly, thank for video. After watching video, i try it and see: "message": "Schema is not configured for mutations.", "extensions": { "category": "graphql" }, when try mutation login. Can you help me?
@@VuNguyen-lj8us Bạn chỉ mình cụ thể fix lỗi đó được không. Chứ đưa cả source không biết lỗi phát sinh từ đâu. Cảm ơn bạn!
@VuNguyen-lj8us5 жыл бұрын
@@trustnguyen3189 giờ mình ko làm lại nên mình cũng ko nhớ lỗi đó tại sao, nhưng trong lúc mình làm thì mình có bị lỗi này. sau này mình sửa lại và tạo repo thì hết. giờ mở lại chắc phải có thời gian b ạ :(
@trustnguyen31895 жыл бұрын
@@VuNguyen-lj8us mình thấy bạn ko có cài lighthouse nữa mà là 1 thư viện khác. Để mình tìm hiểu thêm. Cảm ơn bạn!
@mauricioadolfozabalarojas71345 жыл бұрын
Great video, thanks!
@drehimself5 жыл бұрын
Thanks for watching!
@mauricioadolfozabalarojas71345 жыл бұрын
@@drehimself Hello Andre, sorry by my English, i from Bolivia, and want use GraphQL with vue framework Quasar but i dont know how do it, i try make a boot file but dont work :(
@serhiiivanenko91555 жыл бұрын
Thanks! It was helpful
@drehimself5 жыл бұрын
Thanks for watching!
@shahinsharifi61874 жыл бұрын
You are so cool!
@aArcziMetin25 жыл бұрын
Thanks for it! However, you should not expose client secret.
@drehimself5 жыл бұрын
Thanks for watching! It is protected on the server side and never exposed on the client.