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
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
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!
You only allow the front-end to make call to the api (ex: front-end.com calls api.front-end.com, not-my-front-end.com can't make requests due to CORS errors)
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
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this: protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }
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, 85IMh9HgHJTNinft82Edf3jAoOrkaFcZX0ziRVEQ 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
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this: protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }
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?
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
Does this still work for you? From one day to another (was working before) it's not working anymore for me. I read around that is due to an update to chrome. Shortly, i'm thinking to switch to Passport or Jwt, due to the lack of info. Also Taylor wrote: twitter.com/taylorotwell/status/1229560998098542597 twitter.com/taylorotwell/status/1229615721237372929 I'm in localhost, Laravel 7 + Nuxt. If you could help us with this, would be appreciated.
brother please make a full node.js tutorial(with mysqli database) please i have learnt php Alhamdulillah(all glory to Allah) by watching your tutorials.
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this: protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }
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
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
This is a brilliant video. Airlock was confusing me a bit. You cleared up a lot. Thanks!
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!
You only allow the front-end to make call to the api (ex: front-end.com calls api.front-end.com, not-my-front-end.com can't make requests due to CORS errors)
Good to hear from you thought you had no business with php after many years
Thank you so much! you really helped me understand what is going on behind the scene
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
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?
when requesting from a page that was not provided initially by that laravel app, For ex., from a VUE SPA created by VUE CLI or Nuxt.js
in which folder is the admin panel created? in client project or inside laravel project?
I got error 401 (Unauthorized) when access /api/user
Did you solve it? I have the same problem.
@@Irsatechnologycomake sure you include the domain:port of your client side, e.g localhost:8080, in your sanctum stateful config
@@Aaron-bh8rh thank you. I'm sure but I use nuxt and I think it's different. I'm learning it.
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this:
protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }
hello, could you tell the name of color theme that you use ?
Why blocked by policy in laravel 8?
I am wondering how to implement (logout other devices) by using Sanctum ?
ay bro, can you do one of how to put a certain image to other image as a watermark of some sort.
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?
what is this theme vscode
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, 85IMh9HgHJTNinft82Edf3jAoOrkaFcZX0ziRVEQ
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
I have same problem. I'm getting 204 response , but cookies not sets. How you solved this problem?
Dude, try send withCredentials: 'true' with your axios request
apparently this doesn't work with Safari?
I got error 401 (Unauthorized)
Has you solved it?
Did you solve it? I have the same problem
@@snelinternet4654 make sure you include the domain:port of your client side, e.g localhost:8080, in your sanctum stateful config
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this:
protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }
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?
Glad you found this helpful! You can the token course just here: codecourse.com/courses/api-token-authentication-with-laravel-airlock
Nice video!
Hi Alex
Can you add subtitle or CC in codecourse.com?
Make sanctum auth with multiguards
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
Does this still work for you?
From one day to another (was working before) it's not working anymore for me.
I read around that is due to an update to chrome.
Shortly, i'm thinking to switch to Passport or Jwt, due to the lack of info.
Also Taylor wrote:
twitter.com/taylorotwell/status/1229560998098542597
twitter.com/taylorotwell/status/1229615721237372929
I'm in localhost, Laravel 7 + Nuxt.
If you could help us with this, would be appreciated.
password: ilovecats 😺😺
Thanks For waisting my time
brother please make a full node.js tutorial(with mysqli database) please i have learnt php Alhamdulillah(all glory to Allah) by watching your tutorials.
360p??? is this 2010?
It takes a while longer for youtube to get the 1080p version rendered compared to the 360p one. look again now
It's weird people still complain about this in 2020. It's been common knowledge for some years now
I'm using sanctum and get 401 error when I call /api/user
Did you solve it? I have the same problem
No unfortunatily I can't resolve this
@@luismolina9442 make sure you include the domain:port of your client side, e.g localhost:8080, in your sanctum stateful config
In Providers/RouteServiceProvider.php try replacing ... middleware(['api']) to middleware(['web']), like this:
protected function mapApiRoutes() { Route::prefix('api') ->middleware(['web']) ->namespace($this->namespace) ->group(base_path('routes/api.php')); }