Complete Api Authentication with Laravel Passport

Complete Api Authentication with Laravel Passport

WebDevMatics

5 лет назад

83,575 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

enrique anzey
enrique anzey - 27.07.2023 11:12

Too much unnecessary scenes

Ответить
kalema mark
kalema mark - 16.09.2022 20:12

I'd watched many videos and failed buh was able to make my code work just after watching this video once

Ответить
Wazzhop Inc.
Wazzhop Inc. - 27.08.2021 23:32

How to get user data, using the access token?

Ответить
Sohail Bhatti
Sohail Bhatti - 08.05.2021 14:40

Thanks, Bro you save my days

Ответить
cloudeweb
cloudeweb - 06.05.2021 16:54

Hello, for create api (not create users) of others controllers, the steps are same?

Ответить
sahib singh
sahib singh - 19.04.2021 19:04

Very Simply And Beautifully Crafted, Thank You It Was Wonderfull.

Ответить
kiran baravadiya
kiran baravadiya - 25.02.2021 14:27

hey thank you so much dude for this video ... I watched and tried many videos but this video is very helpful for me ... Thank you sooo much

Ответить
Clauvânder Victor
Clauvânder Victor - 15.12.2020 07:08

u tutorial are breath take , good job.

Ответить
dipo ahmed
dipo ahmed - 30.10.2020 14:21

Method Illuminate\Auth\RequestGuard::attempt does not exist error

Ответить
return 0;
return 0; - 27.10.2020 15:13

Its not working on laravel 8

Ответить
YouTube lndia
YouTube lndia - 13.10.2020 20:49

Tomorrow I have a test and this video is very help full for me thank you so much

Ответить
Daniel Santiago Grisales Vega
Daniel Santiago Grisales Vega - 09.10.2020 21:15

undefined method ->attempt and ->createToken in function login.

Ответить
The Dhiraj Diaries
The Dhiraj Diaries - 29.09.2020 16:50

How to login and enter admin dashboard or user board according to role using same login panel along with use of password package and laracast

Ответить
Fakorede Abiola
Fakorede Abiola - 15.09.2020 00:16

Thank you!!

Ответить
Rajesh Chaurasiya
Rajesh Chaurasiya - 31.08.2020 15:27

just one thing... what extensions do you use for importing classes in vscode? i use ubuntu 20.04 but importing classes i press f12 but it says no definition found. I know the issue is with extensions i use not with my OS.

would be better if you suggest all the extension you use.

Ответить
Saepuloh
Saepuloh - 30.08.2020 15:43

thank bro. I forget to add accept in header hahaha

Ответить
Surinder Rawat
Surinder Rawat - 20.08.2020 14:02

the password you've saving is getting saved as plain text

Ответить
Md Mahmudul Huq
Md Mahmudul Huq - 15.08.2020 10:43

very easy. But you should also change the status code

Ответить
Martin Hartmann
Martin Hartmann - 28.07.2020 10:13

Great video, thanks :)

Ответить
Fernando Monarca
Fernando Monarca - 25.07.2020 16:19

Good morning, how to save authentication passport key to posterior use, because the client don't access the terminal to generate code everytime it need.

Ответить
Ovuoke Aghwotu
Ovuoke Aghwotu - 22.07.2020 15:20

Thank you so much. Straight to the point with easy to understand explanation. Subscribed and turned on notifications.

Ответить
Mahmudul hasan
Mahmudul hasan - 25.06.2020 20:46

how about logout ?

Ответить
Uzair Haider
Uzair Haider - 22.06.2020 13:49

I am having issue logging the user. and I have one question
- when I use auth()->attempt or Auth::attempt(), it returns false. I have my password bcrypted in Db.
- I read that Auth->attempt require password to be hashed. I tried that too but did not worked.
I am using Laravel 7.12 and passport ^9.2

Ответить
Haramohan Mahalik
Haramohan Mahalik - 10.06.2020 22:01

How to create multiauth in passport

Ответить
Matthias Kuhs
Matthias Kuhs - 14.05.2020 09:22

When I do pa make:controller Api\AuthController -r it always creates a file named "ApiAuthController" instead of putting it into the "Api" subfolder. Strange.

Ответить
panji gemilang
panji gemilang - 10.05.2020 15:28

hey man, so cool. I'm using Laravel with Vue as the front end. Do you know how to get the user logged in data using that accessToken?

Ответить
Carda
Carda - 06.05.2020 21:06

I trying in my project.. In localhost ist work
My problem in my hosting nor work
Error estabilised 350
Can you help me it my problem sir

Ответить
maraii amina
maraii amina - 02.05.2020 20:32

hello please any help please message unauthorized in login api

Ответить
Niraj Pal NP
Niraj Pal NP - 28.04.2020 20:43

Thank you sir, nice series for API

Ответить
XaVii
XaVii - 24.04.2020 20:18

thanks a lot!

Ответить
moghwan
moghwan - 17.04.2020 13:56

Thank you! no change needed in Laravel7 all works fine.

Ответить
CIT Co.,LTD
CIT Co.,LTD - 16.04.2020 02:40

Pls help me do logout example! Very Thanks

Ответить
Zina Right
Zina Right - 13.04.2020 23:08

What VS code theme is this? Great tutorial

Ответить
Hodes Becker
Hodes Becker - 11.04.2020 04:43

Many thanks ! In this lockdown I decided to study Laravel, this tutorial helped a lot, straight to the point ! Thanks again.

Ответить
Lolu Adelore
Lolu Adelore - 08.04.2020 13:23

you're too fast. plus you're not even explaining anything .

Ответить
Max Echendu
Max Echendu - 29.03.2020 03:29

Bit of a weird question, but is this authentication secure?
If I created an app to call the login and register endpoints, how would the app make use of the access token to authenticate the user?

Great video by the way :)

Ответить
Joseph Gbudu
Joseph Gbudu - 23.03.2020 19:27

Thank you so much for the simplicity of this concept.

Ответить
Rauf Hashimov
Rauf Hashimov - 23.03.2020 17:59

And then how to log out?

Ответить
Mohamed Shahid
Mohamed Shahid - 21.03.2020 17:10

Thanks simple, clear and straight forward tutorial. Missing just add auth middleware in others route.

Ответить
Mohammad Hafiz
Mohammad Hafiz - 08.03.2020 16:26

Booommm!!!!!

Ответить
Devender Gupta
Devender Gupta - 29.02.2020 14:07

How to check if the token we have is valid?

Ответить
Saugat Poudel
Saugat Poudel - 24.02.2020 14:25

how to update users data can you please make a video on it?

Ответить
Δημητρης Λιακος
Δημητρης Λιακος - 22.02.2020 15:36

Thank you for the video!!
I did the same as you but
i face two issues:
attempt always return false
and auth()->user()->createToken Cannot recognize the function createToken

if (!auth()->attempt($loginData, true)) {
return response(['message'=>'Invalid Credentials']);
}

$accessToken = auth()->user()->createToken('authToken')->accessToken;

Ответить
Muphet
Muphet - 08.02.2020 19:21

started using laragon after this video for local development. i love it

Ответить
Al Imran Suvro
Al Imran Suvro - 07.02.2020 12:34

Thank you so much. Great content. But I an not going to say it is completed.
The missing part is that, How to use Token to access middleware protected route.

Ответить
Guru Zonr
Guru Zonr - 29.01.2020 16:02

Should we send that generated token with each every data request of website?

Ответить
Rajeev Majhi
Rajeev Majhi - 27.01.2020 17:56

very helpful video, thanks very much

Ответить
muhammad najh
muhammad najh - 22.01.2020 12:39

super video, thank you alot .

Ответить