Laravel Sanctum (Airlock) SPA Authentication

preview_player
Показать описание
Want more? We have two courses on Sanctum SPA authentication with Vue CLI and Nuxt. Check them out here:


Official site

Twitter

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

This is a brilliant video. Airlock was confusing me a bit. You cleared up a lot. Thanks!

tamrat_assefa
Автор

Thanks Alex first PHP cource for my PHP experience your cource PHP messaging system on 2012
I am happy to here your voice after 7 years
I love you man thanks a lot

ihabhamad
Автор

Thank you so much! you really helped me understand what is going on behind the scene

jijiwaiwai
Автор

Recommend on using Redis or Memcached for sessions, not cookies and the other, u do not need to whitelist airlock csrf get request (it os a get, not a post) + no /login. just add that to the api route pointing to same one in the web

MadalinIgnisca
Автор

This immediately caught my attention! I saw this when it was in development, but wasn't how it was to compare to Laravel Passport. So, essentially here, what we are doing is utilising CORS for security to authorize the front-end application, rather than an OAuth client ID and secret pair (since they can't be securely stored in a JavaScript app)?

This is very promising, as SPA authentication has been tough when serving outside of the Laravel app.

Great video, straight to the point - thanks!

TheBytesCode
Автор

Good to hear from you thought you had no business with php after many years

curvegate
Автор

Hi, will you consider expanding on this video? There are many more important points to cover, such as email notifications (verification, password reset, etc). The link is set to the API, but it should be the front-end vue app url

CorporalPoon
Автор

I am wondering how to implement (logout other devices) by using Sanctum ?

allaghi
Автор

ay bro, can you do one of how to put a certain image to other image as a watermark of some sort.

sinatraforeign
Автор

hello, could you tell the name of color theme that you use ?

MsHorbjorn
Автор

Does this work exactly the same as Sanctum and if i want to have a Vue/React repository that is not within my Laravel project?

TestificowMC
Автор

thank you for this useful video! just one simple thing. you said you have a course for laravel airlock API Token Authentication...! i couldn find it . did you record that or you will in next days?

miladhp
Автор

Whenever I open the web app, XSRF-TOKEN cookie is already set. What's the use of calling the airlock/csrf-cookie URL then? Any idea?

AniketRaneShadow
Автор

in which folder is the admin panel created? in client project or inside laravel project?

usbjitc
Автор

apparently this doesn't work with Safari?

CorporalPoon
Автор

Hello, does anyone knows how to change localhost:3000 to custom domain for an example nuxt-app.test? I wasn't using localhost at all and now with nuxt im stuck. In the normal vue app, I was able to create vue.config.js file and inside = devServer: { host: 'app.airlock.test' }


I got as response during login csrf-cookie status 204 containing laravel_session, XSRF-TOKEN,


but im not able to login with that I got - CSRF token mismatch, I guess its becouse of my nuxt runs on localhost and laravel on airlock.test, so they have different origin.... Thanks for help

beynod_ordinary
Автор

I got error 401 (Unauthorized) when access /api/user

paulorcaldera
Автор

Hi Alex
Can you add subtitle or CC in codecourse.com?

hafidhpradipta
Автор

I have subscribed to the Codecourse website, but after I revoked my credit card, my subscription was immediately lost, even though I just subscribed for less than 1 day, can it be returned, because I only want to subscribe for 1 month without renewal, please help, because I feel wronged

fhaladin
Автор

I'm using sanctum and get 401 error when I call /api/user

luismolina