#1 - Laravel Passport OAuth2 Server Implementation

preview_player
Показать описание
In this tutorial, we're going to learn how you make a fully-fledged OAuth2 server in Laravel using the Laravel Passport package. The Laravel Passport library makes it really simple to immediately set up an OAuth2 server in your application. Thus, other third-party apps are able to use APIs provided by your OAuth2 server application. We’ll go through all the necessary server configurations alongside with a real-world example to show how you could use OAuth 2.0 APIs.

𝐆𝐢𝐭𝐡𝐮𝐛 𝐑𝐞𝐩𝐨𝐬𝐢𝐭𝐨𝐫𝐲:

#𝟐 - 𝐓𝐨𝐤𝐞𝐧 𝐒𝐜𝐨𝐩𝐞𝐬 𝐢𝐧 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐎𝐀𝐮𝐭𝐡𝟐

#𝟑 - 𝐑𝐞𝐟𝐫𝐞𝐬𝐡 𝐭𝐨𝐤𝐞𝐧𝐬 𝐢𝐧 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐎𝐀𝐮𝐭𝐡𝟐

𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐨𝐫 𝐒𝐚𝐧𝐜𝐭𝐮𝐦 | 𝐖𝐡𝐚𝐭 𝐢𝐬 𝐎𝐀𝐮𝐭𝐡, & 𝐇𝐨𝐰 𝐢𝐭 𝐖𝐨𝐫𝐤𝐬?

𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐏𝐚𝐬𝐬𝐩𝐨𝐫𝐭 𝐀𝐏𝐈 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧

#𝟏: 𝐒𝐏𝐀 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐮𝐬𝐢𝐧𝐠 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐒𝐚𝐧𝐜𝐭𝐮𝐦

#𝟐: 𝐀𝐏𝐈 𝐓𝐨𝐤𝐞𝐧 𝐀𝐮𝐭𝐡𝐞𝐧𝐭𝐢𝐜𝐚𝐭𝐢𝐨𝐧 𝐮𝐬𝐢𝐧𝐠 𝐋𝐚𝐫𝐚𝐯𝐞𝐥 𝐒𝐚𝐧𝐜𝐭𝐮𝐦

Laravel Passport Tutorials

Support my work:

Also, follow us on:
Рекомендации по теме
Комментарии
Автор

*Don't get left behind! Download JavaScript: ES2015 to ES2023 - eBook and become a JavaScript pro!*

QiroLab
Автор

Qiro is my hero.
Thanks a billion
I've trying to figure this out for more than a year 😅
Now I understand it 🎉

fatnaamraoui
Автор

Great great video for those who are understanding OAuth 2.0 first time.

shahzaibmobile
Автор

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.

RezaPrayoga
Автор

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.

manojmishra
Автор

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.

madhand
Автор

hello sir, what about in laravel 8 does it have a frontend just like vue components.

heranghalley
Автор

Thank you sir, please make one real api consuming application based on OAuth in Laravel

satenwebmedia
Автор

me sale este error....
Call to a member function token() on null que debo hacer?

oscarbenito
Автор

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

ChinyONE
Автор

Thank you so much for this great tutorial!

durgeshpandey
Автор



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)

JamiulBari
Автор

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

rajhalrajab
Автор

no me aparece el access_token ni el aparece ^ null Como lo soluciono?

alfredobenito
Автор

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?

martintamagusku
Автор

why you create the OAuth table if the passport gives you some tables?

MrFranciscoooooo
Автор

its outdated now, because in laravel 8 passport-components is not available

azeemhassanch
Автор

Hi why i got this error ? "Call to a member function tokens() on null" on
may i know whats the problem?

志保宮野-oh
Автор

This passport implementation is static, how to make it dynamic? Every user will have his own client id right

akshaygadekar
Автор

How to setup laravel passport with multi auth guards ..

gauravamoli