Getting started with Laravel Passport and OAuth2

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 67

  • @aschmelyun
    @aschmelyun  3 ปีที่แล้ว +9

    If you'd like to view the source code featured in this video, you can check it out here: github.com/aschmelyun/video-auth-laravel-passport
    Also I'm using a new style of recording and editing in this video where I talked while recording, instead of doing them separately like my previous videos. If you noticed a difference and did (or did not) like it compared to my previous videos, please let me know below!

  • @kennethramos2795
    @kennethramos2795 ปีที่แล้ว +2

    Greate tutorial, I was able to learn the concept behind this and how to integrate laravel/passport to my api. Thank you so much for this. Hoping to find more useful tutorial from you.
    God bless!

  • @Samuel.Mwangi
    @Samuel.Mwangi 3 ปีที่แล้ว

    Thanks Andrew for a great video as always.
    As a sidenote, am loving your updated thumbnail style (Legend has it you have updated even past videos with this new style)

    • @aschmelyun
      @aschmelyun  3 ปีที่แล้ว +1

      Thanks, I'm glad you're liking the new style!

  • @Nageswararao93
    @Nageswararao93 2 ปีที่แล้ว +1

    Thank you so much for the detailed explanation

  • @moreoverid1722
    @moreoverid1722 2 ปีที่แล้ว +2

    Thank you very much for this video!

  • @rjee6511
    @rjee6511 ปีที่แล้ว

    Great help for Laravel passport package usage,
    Thanks.👍

  • @dev_jeongdaeri
    @dev_jeongdaeri 3 ปีที่แล้ว +3

    Thanks for amazing content!!!!👍

  • @devarm
    @devarm 5 หลายเดือนก่อน

    Hey Andrew, what if we are using an API instead of having a client? Will it be the same flow?

  • @srikanthsanjeev
    @srikanthsanjeev 2 ปีที่แล้ว +1

    Thanks for detailed explanation

    • @aschmelyun
      @aschmelyun  2 ปีที่แล้ว

      I'm glad you liked it!

  • @AnilBaniyaNep
    @AnilBaniyaNep 2 ปีที่แล้ว

    hi Andrew Schmelyun, thanks for the video. Whats the flow to get an authorization code for mobile application? Should the mobile app user should redirect to the browser for authentication and follow the same process as in web or there is another process for mobile application?

  • @jjplays404
    @jjplays404 ปีที่แล้ว

    Which IDE/editor you are using?
    and it's settings? :) please share

  • @uweopfern
    @uweopfern 2 ปีที่แล้ว

    Hi, Andrew thank you so much for this, I am implementing the same thing, but I got one blocker, if a user does not verify their emails, still that endpoint of authorize will be consumed regardless of user email verification, any idea on how to check email verification before issuing that code

  • @adics
    @adics ปีที่แล้ว

    Great Explanation.. But how can I get the refresh token without sending the client secret (I'm using PKCE)? Can anyone explain it to me?

  • @shashikanthd3294
    @shashikanthd3294 2 หลายเดือนก่อน

    Which dev tool did you use in this video?

  • @mrarmani2079
    @mrarmani2079 2 หลายเดือนก่อน

    THis example if the passport used in the same system. How about if they are in the different system?

  • @delvinnj7941
    @delvinnj7941 ปีที่แล้ว

    Thank you, and how to get the details for the domain that is used in our API

  • @SyofyanZuhad-q3h
    @SyofyanZuhad-q3h ปีที่แล้ว

    is the scope on passport same with access permission for the user?

  • @googlemap3641
    @googlemap3641 3 ปีที่แล้ว

    hi, I have an error with Authorizing A Client ( "hint": "Cannot decrypt the authorization code"). I searched for this error on google but it is not clear and I can't understand it. Thanks!

  • @fatima-cf1bj
    @fatima-cf1bj 4 หลายเดือนก่อน

    great channel🤩🤩

  • @SEOng-gs7lj
    @SEOng-gs7lj 2 ปีที่แล้ว

    Must a client belong to a user? why did passport create 2 clients with user_id == null? Can those 2 clients be used?

  • @FullMe7alJacke7
    @FullMe7alJacke7 2 ปีที่แล้ว

    How would you go about making this work for a separated front end that's following a micro-service architecture?
    I have Project #1: Laravel Back End
    and Project #2: VueJS Front End
    What's the correct way to continue?
    A) Create a dedicated middleman route to hit externally, which hits the client creation route internally.
    B) Redirect To a Client Management page inside of the Backend project.

    • @Imagine51204
      @Imagine51204 ปีที่แล้ว

      Hi, I have same scenario did you get the solution ?

  • @subhadipghorui2216
    @subhadipghorui2216 3 ปีที่แล้ว

    How to use client id and client_secret in the frontend? cause they are needed for authorization API, so somebody can see in the frontend. So how to use it securely? Please reply. I am using the Oauth2 passport library in laravel and frontend angular.

    • @Boris2811ust
      @Boris2811ust 3 ปีที่แล้ว +1

      OAuth authors recommend to use PKCE flow in this case.

  • @madhand1472
    @madhand1472 2 ปีที่แล้ว

    hi
    I am using passport oauth2 in lumen
    I got error Authorization request was not present in the session.

  • @dfordemo981
    @dfordemo981 2 ปีที่แล้ว

    i think i have listened your voice somewhere ?? may be in the "Windows Narrator", the exactly the same voice as you, I came to your video from the laracast series and channels

  • @MrMatni45
    @MrMatni45 3 ปีที่แล้ว

    hi...im new to laravel passport...my project is multipage app...how should i handle for refresh token??do i have to check token expiry on each request??

  • @jacktapanut876
    @jacktapanut876 2 ปีที่แล้ว

    How to create your dashboard UI? Please share more your clip.

  • @ajisurya2818
    @ajisurya2818 2 ปีที่แล้ว

    can make 1 token oauth api to use the other api in laravel passport?

  • @amitleuva8739
    @amitleuva8739 ปีที่แล้ว

    I am receiving 'Unauthenticated ' message when trying to access data using access-token

  • @joalbertylosorio1895
    @joalbertylosorio1895 2 ปีที่แล้ว

    How do i implement this with a frontend built

  • @igerardogc
    @igerardogc 3 ปีที่แล้ว

    Which theme are you using in phpstorm?

    • @aschmelyun
      @aschmelyun  3 ปีที่แล้ว +1

      I'm using the Material UI plugin, and the Atom One Dark color scheme with it.

  • @augischadiegils.5109
    @augischadiegils.5109 2 ปีที่แล้ว

    ❤️❤️❤️❤️❤️

  • @MisterCuriousController
    @MisterCuriousController 2 ปีที่แล้ว

    can I use sanctum and passport at the same time?

    • @aschmelyun
      @aschmelyun  2 ปีที่แล้ว

      Yes, you definitely can. They both serve kind of separate purposes though. If you want to just authenticate some users to your application and be able to provide them an auth token, I'd reach for Sanctum.

  • @nguyennhat8284
    @nguyennhat8284 2 ปีที่แล้ว +1

    how can i logout, reset password...

  • @fadihijazi8574
    @fadihijazi8574 2 ปีที่แล้ว

    look at this cool tutorial !

  • @chengchengchengchen4857
    @chengchengchengchen4857 3 ปีที่แล้ว

    Why I got null, when I trying “dd($request->user()->clients)” that I created a Passport Client after?

    • @franzkafka9734
      @franzkafka9734 3 ปีที่แล้ว

      how did you fix it?

    • @Hann0T
      @Hann0T 2 ปีที่แล้ว

      @@franzkafka9734 run the migration

    • @franzkafka9734
      @franzkafka9734 2 ปีที่แล้ว

      @@Hann0T thx

    • @accountdua9375
      @accountdua9375 ปีที่แล้ว

      @@franzkafka9734 How????????

  • @SethSetiadha
    @SethSetiadha 4 หลายเดือนก่อน

    Great tutorial. The keyboard sound bit annoying though

  • @oketafred
    @oketafred 3 ปีที่แล้ว

    Awesome!

  • @kornflakesss
    @kornflakesss 3 ปีที่แล้ว

    is anyone else getting Undefined method 'routesAreCached' ? You have any idea what that is?

    • @blueice1364
      @blueice1364 2 ปีที่แล้ว

      I'm new to laravel, and I'm also getting this error, haven't figured out any solution yet. :(

    • @jamestangeres3519
      @jamestangeres3519 2 ปีที่แล้ว

      change it to this
      /** @var CachesRoutes $app */
      $app = $this->app;
      if (!$app->routesAreCached()) {
      Passport::routes();
      }

  • @aspirinemaga
    @aspirinemaga 3 ปีที่แล้ว

    thank you sir

  • @nikolicvladimir
    @nikolicvladimir 2 ปีที่แล้ว

    Who is My Client? Logged in User?

  • @gethermedel3620
    @gethermedel3620 2 ปีที่แล้ว +1

    you miss how to handle the state field

  • @natdotk
    @natdotk ปีที่แล้ว

    how to connect keycloak.

  • @JenuelDevTutors
    @JenuelDevTutors 2 ปีที่แล้ว

    what IDE is this?

    • @aschmelyun
      @aschmelyun  2 ปีที่แล้ว

      This is PHPStorm, with the Material Theme UI package

  • @tommycisternino
    @tommycisternino ปีที่แล้ว

    still valid in Laravel 10?

  • @Okub
    @Okub 2 ปีที่แล้ว +1

    You sound and talk exactly like Not Just Bikes... what the hell, for a second i thought he does laravel tutorials lol...

  • @naungyehtet1231
    @naungyehtet1231 2 ปีที่แล้ว

    Why would we need to make a crud for the OAuth client

    • @MAxAMILLIoN757
      @MAxAMILLIoN757 2 ปีที่แล้ว +1

      I don't think you neeeeed to, but it's probably a good idea so your users can manage permissions for their authorized/connected apps, I think. Otherwise there would be no way for your users to remove permissions

  • @SKRUBL0RD
    @SKRUBL0RD 2 ปีที่แล้ว

    could have at least finished by saying how to return a better unauthorized result instead of a full trace

  • @enriqueanzey7845
    @enriqueanzey7845 ปีที่แล้ว

    Man, too much unnecessary scenes, why do i need to watch the video if u just saying something on the page which i can read on ?

    • @ruvinifernandez3039
      @ruvinifernandez3039 5 หลายเดือนก่อน

      Then read the docs and don't watch the video.