Тёмный
No video :(

Api Authentication With Laravel Passport | Forgot and Reset Password 

Scalable Scripts
Подписаться 34 тыс.
Просмотров 35 тыс.
50% 1

👉 Check our website: scalablescript...
A Laravel tutorial on how to login using Laravel Passport We will create REST APIs with Laravel and add also Forgot and Reset Password functionality. Learn how to generate a JWT token with Laravel Passport and learn how to manage it. You will learn also how to add Migration and Seeders with Laravel.
Check out more courses: scalablescript...
#laravel #passport #jwt

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@Jefferson4026
@Jefferson4026 3 года назад
Can you share the repository?
@sadiqyusufilu7954
@sadiqyusufilu7954 4 года назад
Short, simple and very precise. Thank you.
@ivanarabome4172
@ivanarabome4172 Год назад
honestly
@ScalableScripts
@ScalableScripts 3 года назад
If you want to authenticate using Laravel Sanctum you can check these tutorials: React and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEuSQb-UCPDcUV_re5uXaOU9 VueJS and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEs7ErSWENv03zOKtH5NTG61 Angular and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEtVCB8awarHu1NjIyEX0Va9 NextJS and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEsbPs3bmm98UP3Ny8tqNs1f NuxtJS and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEt0mlfWzGkk9_a5iV_xF-wr Svelte and Laravel JWT Authentication: ru-vid.com/group/PLlameCF3cMEssaXOEym93ID7_e6ZDyiGO
@Somcoders
@Somcoders 3 года назад
Thank you , so I can migrate JWT to passport without hesitate.
@desi_mundee
@desi_mundee 4 года назад
Ur channel is awesome me badly looking react js and laravel API authentication
@rokybulrayhanchowdhury9923
@rokybulrayhanchowdhury9923 3 года назад
your are amazing , please share the repository it will help us
@desi_mundee
@desi_mundee 4 года назад
Kindly make series on react js tutorial ur awesome teacher
@ScalableScripts
@ScalableScripts 4 года назад
yes more tutorials are coming on reactjs, but currently here you can find the react and laravel autherization: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-F9Xmc3iHc88.html
@manuelcardona911
@manuelcardona911 3 года назад
Excelente explicación haces que sea muy sencillo de comprender, muchas gracias.
@antoniopapa7866
@antoniopapa7866 4 года назад
Nice video, thank you for sharing
@damarpermadany9096
@damarpermadany9096 2 года назад
Very usefull video, thank u for sharing.
@A_C_3
@A_C_3 2 года назад
Where did you get the token when you test the 'reset' function in Postman?
@ItsAKAZ
@ItsAKAZ Год назад
Excellent Work!!!
@adhamkassem3058
@adhamkassem3058 3 года назад
Thank you for this great video
@masivinmarquez2361
@masivinmarquez2361 3 года назад
Hi @scalable Scripts, I am stuck on minute: 17:29, I am not getting the same result than you on Postman when I changed the param from 'Request' to 'RegisterRequest' on AuthController.. Also I noticed you have a file more named "../Requests/Register.php" , did you some other changes not visible on the video? please could you help me. thanks
@ScalableScripts
@ScalableScripts 3 года назад
You should add another header in postman X-Requested-With: XMLHttpRequest then your problem will be fixed
@masivinmarquez2361
@masivinmarquez2361 3 года назад
@@ScalableScripts oh yeah it worked. Jason is generated in Postman now :) thanks so much!!!
@masivinmarquez2361
@masivinmarquez2361 3 года назад
Hi @scalable Scripts, I want to do a especial in order to register new users on front end but with admin user.. but since this api is public for anyone through postman.. this is not secure for my target right?, what is your suggestion to do that? thanks!
@alvaroperezdiaz3679
@alvaroperezdiaz3679 4 года назад
So... What are the advantages of using passport instead auth middleware?
@ScalableScripts
@ScalableScripts 4 года назад
Nice question, the regular auth middle ware uses sessions to store information about the authenticated users but passport stores them in the database. That's why when you install passport there are migrations that need to be run. Basically if you want to build RESTful API's you have to pick Passport since it handles also the JWT token and also it will prevent you from going to technical debt if your app goes bigger. I hope I clarified your question, let me know if you have more.
@nestorescala5595
@nestorescala5595 3 года назад
Nice video! Congratutations!! This help me so much.. Great!!
@chriscrowd4946
@chriscrowd4946 3 года назад
Excellent work! Thank you!
@oussamavive1
@oussamavive1 3 года назад
which IDE are you using and thank you for the greatest course !
@ScalableScripts
@ScalableScripts 3 года назад
Thank you :) I'm using PHPStorm
@abusalahamusazangi6507
@abusalahamusazangi6507 3 года назад
Hi Could you please explain At 10:54 Why did you use /** @var User $User */ in AuthController login method before the $user->createToken(); Thanks in advanced
@ScalableScripts
@ScalableScripts 3 года назад
Because my IDE sometimes doesn't know that $user is a type of User so it define that in the comments and it will help the intellisense
@subhadipghorui2216
@subhadipghorui2216 3 года назад
Can we create a refresh token with the access_token mannually?? Please share the code.
@EdgarJRojasL
@EdgarJRojasL 3 года назад
Hi, when i'm trying to user login, i get "unauthorized" message...
@sanjiseldarbe
@sanjiseldarbe 3 года назад
Thank you for this amazing course, im stuck at 11:23 .. I don't get token like yours. Codes are same. In my case i get something like: "token": { "name": "app", "abilities": [ "*" ], "tokenable_id": 2, "tokenable_type": "App\\Models\\User", "updated_at": "2020-12-01T13:16:22.000000Z", "created_at": "2020-12-01T13:16:22.000000Z", "id": 25 } How can i retrieve accessToken please help me teacher.
@sanjiseldarbe
@sanjiseldarbe 3 года назад
in AuthController's login() method i used response like this 'token' => $token->token instead of 'token' => $token then i get the token but not long as yours. After i tried to get the user, postman said "Unauthorized". I did exactly the same thing as you but still i can't get the user..
@ScalableScripts
@ScalableScripts 3 года назад
You are using Laravel Sanctum not Laravel Passport. You should use it like this $token = $user-> createToken('app')->plainTextToken;
@sanjiseldarbe
@sanjiseldarbe 3 года назад
@@ScalableScripts Oh ok i got the token but i am still "unauthorized". How should i use this token to authenticate? By the way i don't even know about Sanctum how can i remove that :( I'm so new at Laravel API please forgive me.. Thanks a lot for your quick answer.
@sanjiseldarbe
@sanjiseldarbe 3 года назад
in api.php i changed ->middleware('auth:api') to ->middleware('auth:sanctum'); then i authenticated now i will continue with your course thanks again teacherr
@bassamdarawshi
@bassamdarawshi 3 года назад
why you don't validate the input before send the request ?
@ScalableScripts
@ScalableScripts 3 года назад
Is more secure to do it on the backend since the request can come from different sources like Postman for example.
@waguinhoramos
@waguinhoramos 2 года назад
can you provide the source code or repository?
@PavanKumar-wg3xr
@PavanKumar-wg3xr 3 года назад
can u please share me this file repository
@zekrialadin8801
@zekrialadin8801 2 года назад
git repo please ?
@mohamdalmhde1322
@mohamdalmhde1322 2 года назад
reactjs local host 3000 lool
@toshi2205
@toshi2205 2 года назад
If anyone had the same troubles as me. (Probably its because I use Laravel 8) First problem: Can't run "php artisan serve" Make sure you are in your project folder: "cd laravel-api" 2. Problem I had. Route::get('hello', 'HelloController@hello'); Fix for me: Route::get('hello', 'App\Http\Controllers\HelloController@hello'); factory(\App\User::class,10)->create(); I had to replace with: \App\Models\User::factory()->count(10)->create();
Далее
Angular and Laravel Authentication Full Course
45:06
Просмотров 27 тыс.
Construction site video BEST.99
01:00
Просмотров 345 тыс.
Reset Forgot Password : Laravel API
14:13
Просмотров 31 тыс.
Getting started with Laravel Passport and OAuth2
29:52
Complete Api Authentication with Laravel Passport
14:57
React JWT Authentication
41:06
Просмотров 94 тыс.
Laravel Breeze Reset Password with Email or Username
16:18
Construction site video BEST.99
01:00
Просмотров 345 тыс.