Laravel Vue SPA Issue Tracker part 2: passport api auth

preview_player
Показать описание
Today on our Laravel Vue SPA issue tracker part 2 we are implementing(partially) login and register api routes, using laravel passport.
After the login we are getting the access_token that we need to be logged in.

Рекомендации по теме
Комментарии
Автор

Guys because I want you to get started easier with php artisan serve, instead of sending the request with guzzle, I did it the "laravel way" at the end.

ProgrammingwithPeter
Автор

is it possible to make a core server for authentication purposes that can be used by other clients I mean SSO

Kirasim
Автор

Hey bro, why i typing this code " $tokenRequest = Request::create(uri:'/oauth/token', method:'post', $data); " got error underline. whats wrong

endrosamstrong
Автор

Hii in postman i have this error {
"error": "invalid_grant",
"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
"hint": "",
"message": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
}
thanks for your help

ezoudj.
Автор

Hi, lost a bit, explain the transition from localhost:8000 to localhost:8004.

miv.
Автор

Hi Peter.
How to make multi auth guard api with laravel passport. Like Admin and Customers api.

faruksaldr
Автор

How can i implement multiple authentication using passport ??

shawonhossain
Автор

Hey Bro! Thank you for this. I fixed my OAuth2 configuration on SPA hosted on Heroku.
You deserve more subscriber and thumbs up because not everyone are willing to share their knowledge for free.
More power!

janbrianpaulebora
Автор

Great job Peter, it would be nice if you made a video with user roles Laravel + Passport + Vue + Vuex

abelenocrodriguez
Автор

Passport::routes(function ($router) {
$router->forAccessTokens();
});
enough for this project )
don't stop it ))

TheP
Автор

cannot thank you enough for making this. I was beating my head against the wall trying to get through the laravel documentation and you helped me out million. Thank you!

metalevel
Автор

Looks like not inspired to this tutorial by saying "Damn it, it's hard to speak" peace!

creativeedge
Автор

Hi Peter, did you plan to implement a logout feature too? Could this be a good way to log a user out? + tokenId);

matteoraf
Автор

why did you not use php artisan command to create a controller?

newprogrammer
Автор

Did Peter commit today's work?



Yes.

kmata
Автор

Hello peter,
I get an error called "invalid_grant" with 400 response (bad request). It said that provided authorization grant or refresh token was invalid, expired, revoked, didn't match the redirection URI, or was issued to another client. What should i do? Thanks

hendarmsa
Автор

hello peter, can i get the project folder in this step ?

hilmihidayat