#1 - Laravel Passport OAuth2 Server Implementation

  Рет қаралды 47,755

QiroLab

QiroLab

Күн бұрын

Пікірлер: 88
@QiroLab
@QiroLab 4 жыл бұрын
*Don't get left behind! Download JavaScript: ES2015 to ES2023 - eBook and become a JavaScript pro!* 👉 qirolab.gumroad.com/l/javascript-from-es2015-to-es2023
@shahzaibmobile6587
@shahzaibmobile6587 2 жыл бұрын
Great great video for those who are understanding OAuth 2.0 first time.
@fatnaamraoui299
@fatnaamraoui299 8 ай бұрын
Qiro is my hero. Thanks a billion I've trying to figure this out for more than a year 😅 Now I understand it 🎉
@QiroLab
@QiroLab 8 ай бұрын
Thank you
@manojmishra3889
@manojmishra3889 4 жыл бұрын
Hi, This is the best tutorial for Laravel OAuth2 on youtube, please keep up the good work. Can this be used for laravel microservices. Also, can you please make a tutorial for full featured laravel microservices.
@RezaPrayoga236
@RezaPrayoga236 3 жыл бұрын
this is some kind to build an SSO server for another third-party library app that is can use APIs provided by your OAuth2 server application. Great.
@madhand1472
@madhand1472 3 жыл бұрын
I have error Session store not set on request in lumen. on oauth\authorize after enable session in lumen I got Authorization request was not present in the session.
@JamiulBari
@JamiulBari 2 жыл бұрын
$request->user()->token()->delete() gives error. since $request->user() is null and why if I click "Authorize from server" it will ask for server user login? Should it not be directly Authorization request page (server.test/oauth/authorize)
@minhhoangcong8847
@minhhoangcong8847 2 жыл бұрын
Did you solve this problem, I got the same error as you =))
@JamiulBari
@JamiulBari 2 жыл бұрын
@@minhhoangcong8847 I could not. It was taking a lot of time. I switched to other problems to solve. And on top this KZbinr does not even reply. Great.
@satenwebmedia6864
@satenwebmedia6864 4 жыл бұрын
Thank you sir, please make one real api consuming application based on OAuth in Laravel
@azeemhassanch
@azeemhassanch 3 жыл бұрын
its outdated now, because in laravel 8 passport-components is not available
@alfredobenito1852
@alfredobenito1852 2 жыл бұрын
no me aparece el access_token ni el refresh_token......me aparece ^ null Como lo soluciono?
@muhammadzeeshan6788
@muhammadzeeshan6788 2 ай бұрын
how can we implement openid connect with passport???
@heranghalley1494
@heranghalley1494 4 жыл бұрын
hello sir, what about in laravel 8 does it have a frontend just like vue components.
@oscarbenito7930
@oscarbenito7930 2 жыл бұрын
me sale este error.... Call to a member function token() on null que debo hacer?
@ajisurya2818
@ajisurya2818 2 жыл бұрын
how to make 1 token oauth laravel passport for the other oauth api
@MrFranciscoooooo
@MrFranciscoooooo 3 жыл бұрын
why you create the OAuth table if the passport gives you some tables?
@ChinyONE
@ChinyONE 3 жыл бұрын
Hey, why do u save the token in the database? Shouldn´t the client get the token as response and send it with every request to the api? Why storing the access token extra in the db? cheers
@rajhalrajab8914
@rajhalrajab8914 3 жыл бұрын
Hello, am a beginner with laravel passport, and am using laravel 6 for both applications but when I autherize from server and the server is off, the server just logs in without autherization
@durgeshpandey5910
@durgeshpandey5910 4 жыл бұрын
Thank you so much for this great tutorial!
@QiroLab
@QiroLab 4 жыл бұрын
Glad you enjoyed it!
@QiroLab
@QiroLab 4 жыл бұрын
Glad you enjoyed it!
@RSuregar
@RSuregar 3 жыл бұрын
what extension VS Code you used?
@gauravamoli9277
@gauravamoli9277 Жыл бұрын
How to setup laravel passport with multi auth guards ..
@akshaygadekar9926
@akshaygadekar9926 3 жыл бұрын
This passport implementation is static, how to make it dynamic? Every user will have his own client id right
@subhstha-j6b
@subhstha-j6b Жыл бұрын
Very good content, can you create video how to implement the Oauth2 Server for SSO.
@andikasaputra1390
@andikasaputra1390 4 жыл бұрын
What db client you use?
@志保宮野-o1h
@志保宮野-o1h 4 жыл бұрын
Hi why i got this error ? "Call to a member function tokens() on null" on C:\xampp\php\passport2-client\app\Http\Controllers\OauthController.php:41 may i know whats the problem?
@mauriziofilocamo5877
@mauriziofilocamo5877 4 жыл бұрын
Me too...
@heranghalley1494
@heranghalley1494 4 жыл бұрын
hello could you solve this problem, I faced it too
@nandalals9441
@nandalals9441 4 жыл бұрын
Hi, This is very useful. I appreciate your effort, But can u pls help bcz i am in a bottleneck ie on the Client app Oauthcontroller,php callback functionality, when i give the request like dd($request->code); i got the printed code, but when i pass other params like "'grant_type', 'client_id', 'client_secret', 'redirect_uri'" and dd($response->json()); it shows like null and what ever the values of the params i give was right => error shows like [ SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'access_token' cannot be null (SQL: insert into `oauth_tokens` (`access_token`, `expires_in`, `refresh_token`, `user_id`, `updated_at`, `created_at`) values (?, ?, ?, 1, 2021-01-14 23:12:49, 2021-01-14 23:12:49)) ] due to null data.
@nidhiagarwal6999
@nidhiagarwal6999 3 жыл бұрын
How can do it in laravel 8 using laravel passport
@jashanpreet832
@jashanpreet832 3 жыл бұрын
Ohhh what's great tutorial laravel is best
@subhadipghorui2216
@subhadipghorui2216 3 жыл бұрын
Can you make another video if I want to have A Main Oauth server and A client laravel app. I want to use the user credential on server to logged in user on client app.
@martintamagusku2681
@martintamagusku2681 4 жыл бұрын
So, if we want a API than can use personal access token as a simple token, and the can be access from other clients using OAuth2, we have to split the API en two?
@juandavidcamargo5713
@juandavidcamargo5713 4 жыл бұрын
Lo mejor que he podido encontrar
@akudrive6890
@akudrive6890 4 жыл бұрын
sir, Which One Do You Prefer Between vue and react?
@donpuerto
@donpuerto 4 жыл бұрын
Vue
@QiroLab
@QiroLab 4 жыл бұрын
Both are good. But if you are beginner then I will suggest Vue, because it is very easy to learn.
@gethermedel3620
@gethermedel3620 2 жыл бұрын
to save your Soul, it's Vue, I've used both in A LOT of projects and big ones too, they both can do WHATEVER YOU WANT TO HAPPEN. Vue is easier, without doing a lot of overhead unlike React -.- so go with Vue and save yourself from the overhype framework react.
@salmanafridi785
@salmanafridi785 4 жыл бұрын
I am confuse. What if there are two users then how I set their client ids dynamically instead of hardcode in controller
@QiroLab
@QiroLab 4 жыл бұрын
I think you may need to understand the OAuth2 workflow. You may have seen "Login with Facebook, Twitter, Google or Github". Assume `server.test` like Facebook, now to create a login with Facebook you will need to create App in the Facebook developer account, and that will generate client id and secret key (similar like at 13:35) and that you will use on your website. And assume `client.test` app as your website where you will use that client id and secret key. When you click on "login with Facebook" button it redirects to Facebook page for authorization that that website is requesting to access your data (similar like at 15:01). Now I hope you understand that workflow. I also suggest you watch that video, in this video, I have explained how OAuth works behind the scenes. kzbin.info/www/bejne/gnaUhXZqjLhnebs
@salmanafridi785
@salmanafridi785 4 жыл бұрын
@@QiroLab I know but suppose I create one more new app then I again go to controller and pass client I'd there is way to create form something to pass client I'd from GUI
@muhammadtareen5376
@muhammadtareen5376 3 жыл бұрын
What if we don't have access to the server? How would you go about authenticating a user from a server on which we don't have access to?
@gethermedel3620
@gethermedel3620 2 жыл бұрын
short answer you can't
@An_Najib
@An_Najib 4 жыл бұрын
can you do like this.. but using Lumen as Server framework?
@An_Najib
@An_Najib 4 жыл бұрын
ohh... and.. can I access API from AJAX/Axios? how to secure access token then
@pratikpawar05
@pratikpawar05 4 жыл бұрын
how do you have that 'import class' functionality in visual studio code?
@QiroLab
@QiroLab 4 жыл бұрын
For that I have installed `PHP Namespace Resolver` extension in my vscode editor
@eknojorbd7639
@eknojorbd7639 4 жыл бұрын
This tutorial very very helpful . now i am watching. Hey bro please make a video Laravel valet on ubuntu system with phpmyadmin.. please please..
@QiroLab
@QiroLab 4 жыл бұрын
Sure I will
@eknojorbd7639
@eknojorbd7639 4 жыл бұрын
​@@QiroLabI will wait..
@akudrive6890
@akudrive6890 4 жыл бұрын
@@QiroLab yea, please create tutorial valet linux and phpmyadmin.
@juancholeal
@juancholeal 3 жыл бұрын
where do you get that $ request-> user () -> token () ... if that $ request-> user doesn't exist
@tusharraturi5760
@tusharraturi5760 3 жыл бұрын
I am getting the same error. $request->user() throws null. Can you help me with it?
@nidhiagarwal6999
@nidhiagarwal6999 3 жыл бұрын
Hello php artisan vendor:publish --tag=passport-component Is not available in my laravel 8 passport
@nidhiagarwal6999
@nidhiagarwal6999 3 жыл бұрын
How can do it
@cubedev4838
@cubedev4838 Жыл бұрын
Amazing, can u make this series using laravel 10?
@QiroLab
@QiroLab Жыл бұрын
Sure, I will make new video with the latest version.
@sayantanichatterjee2445
@sayantanichatterjee2445 4 жыл бұрын
Sir this is an awesome video. Can u please tell me why are there separate applications for client and server. Is it possible to do this in a single laravel app?
@QiroLab
@QiroLab 4 жыл бұрын
For that, you have to understand the OAuth2 workflow. You may have seen "Login with Facebook". Assume `server.test` like Facebook, now to create a login with Facebook you will need to create App in the Facebook developer account, and that will generate client id and secret key (similar like at 13:35) and that you will use on your website. And assume the `client.test` app as your website where you will use that client id and secret key. When you click on the "login with Facebook" button it redirects to the Facebook page for authorization that that website is requesting to access your data (similar to at 15:01). Now I hope you understand that workflow. I also suggest you watch that video, in this video, I have explained how OAuth works behind the scenes. kzbin.info/www/bejne/gnaUhXZqjLhnebs
@donpuerto
@donpuerto 4 жыл бұрын
Is there any change on complete login/logout/register using passport ie password recovery/throttling, change password, token expiration with action or pop up on screen, and session timeout
@QiroLab
@QiroLab 4 жыл бұрын
I did not get your question. There is nothing change in passport API authentication. It is new tutorial series on making OAuth2 server using Passport package.
@jakubmonikowski4871
@jakubmonikowski4871 4 жыл бұрын
Dude, more please ! .. find it as useful as laracasts
@QiroLab
@QiroLab 4 жыл бұрын
Glad you enjoyed it! Sure, I will make more tutorials.
@shahzaibmobile6587
@shahzaibmobile6587 2 жыл бұрын
Thank you so much bro.
@satenwebmedia6864
@satenwebmedia6864 4 жыл бұрын
Sir please make one tutorial on how to send an image or file using HTTP client api to another web app
@fgsolutions4195
@fgsolutions4195 4 жыл бұрын
Illuminate\Http\Client\ConnectionException cURL error 6: Could not resolve host: api (see curl.haxx.se/libcurl/c/libcurl-errors.html) This error comes when you complete callback() my server is running on localhost:8000 and client is running on local ip 192.168.2.25:8000
@gethermedel3620
@gethermedel3620 2 жыл бұрын
you might want to update this as Laravel Passport v11, they added another field which is state.
@szymonjol5575
@szymonjol5575 3 жыл бұрын
Great video
@QiroLab
@QiroLab 3 жыл бұрын
Thanks!
@bholakrkhawas5400
@bholakrkhawas5400 3 жыл бұрын
Thanks
@mohdhaikalrozhan6237
@mohdhaikalrozhan6237 Жыл бұрын
Hi there, please make this video on 2023 version. This video is very helpful but kind of outdated.
@QiroLab
@QiroLab Жыл бұрын
Sure, I will make new video with the latest version.
@IsraelRuizaespera
@IsraelRuizaespera 2 жыл бұрын
show very good!
@eknojorbd7639
@eknojorbd7639 4 жыл бұрын
Waiting bro...
@gautamsingh-iv2nm
@gautamsingh-iv2nm 2 жыл бұрын
crazy gk trick
@trannam2295
@trannam2295 3 жыл бұрын
how to use beautiful command like you
@QiroLab
@QiroLab 3 жыл бұрын
I am using ZSH with oh-my-zsh on my terminal. I have already created video on this. You should watch that video also: kzbin.info/www/bejne/d3_bfaCfgb2nfK8
@trannam2295
@trannam2295 3 жыл бұрын
@@QiroLab thanks so much
@ЯрославВлас-б6т
@ЯрославВлас-б6т 3 жыл бұрын
Aaaaaaaaaaaaa What language do you speak?
@QiroLab
@QiroLab 2 жыл бұрын
My native language is Hindi.
#2 - Token Scopes in Laravel Passport OAuth 2.0
9:01
QiroLab
Рет қаралды 10 М.
Getting started with Laravel Passport and OAuth2
29:52
Andrew Schmelyun
Рет қаралды 77 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 552 М.
#3 - Refresh tokens in Laravel Passport OAuth2
10:42
QiroLab
Рет қаралды 21 М.
Laravel Roles and Permissions: All CORE Things You Need To Know
16:32
Laravel Daily
Рет қаралды 229 М.
Securing a Laravel API in 20 minutes with JWTs
20:36
Andrew Schmelyun
Рет қаралды 79 М.
Auth in Laravel 8: Fortify and Laravel UI (without Jetstream)
14:05
Laravel Daily
Рет қаралды 119 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН