Это видео недоступно.
Сожалеем об этом.

Laravel Passport Authentication | OAuth2 Authentication | Token Based Authentication | API Tutorial

Поделиться
HTML-код
  • Опубликовано: 13 авг 2024
  • Laravel Passport Authentication | OAuth2 Authentication | Token Based Authentication | API login and registration with Laravel Passport | API Tutorial | Laravel 8 | Learning Points
    From this video we will learn about-
    User Authentication with API request?
    How to pass Bearer Token with API request ?
    Token based authentication with laravel ?
    What is OAuth2 ?
    Laravel Passport Authentication
    How OAuth2 works ?
    How to register user using passport ?
    How to login user using passport?
    And many things..
    Chapters
    00:00 Introduction
    00:33 OAuth2 Authentication
    01:42 Add Passport
    03:03 Migrate Passport Tables
    04:01 Install Passport
    04:59 Configure Model
    05:43 Configure Passport
    06:58 Create Controller
    08:36 Registration Functionality
    16:20 Login Functionality
    18:50 Test with Postman
    22:30 Middleware - Authorize URL
    24:58 Conclusion & Next video topic
    So using this video we will get a complete knowledge about how to create token based authentication system with laravel passport. This is a very simple example to understand how real life token based authentication system working and how to protect your url from unauthorized access. Please see the full video to complete get complete knowledge about token based authentication system.
    In our upcoming video I will cover about Logout functionality with Laravel Passport : • Laravel 8 Passport Log...
    Please comment your feedback and support me by subscribing to this channel.
    Laravel 9 New upgrades : • Laravel 9 New Features...
    Laravel 9 Tutorial : • Laravel 9 Tutorial | L...
    Express JS Tutorial : • Express Js Tutorial | ...
    Full Node Js Tutorial : • Node JS latest version...
    Full JWT Authentication tutorial in Laravel 8 : • Laravel 8 REST API Usi...
    Full PHP tutorial : • PHP beginners to advan...
    Full ECMA Script Tutorial : • ES6 | ECMA SCRIPT Tuto...
    Laravel 8 tutorial : • Laravel 8 tutorial | L...
    Angular Tutorial : www.youtube.co...
    API tutorial with Laravel : • API tutorial from begi...
    Livewire Tutorial : www.youtube.co...
    Full Stack Application Tutorial : • Full Stack Application...
    Full Voyager admin panel tutorial: www.youtube.co...
    Advance PHP tutorial : • Advance PHP tutorial |...
    PHP Interview Questions Answers : www.youtube.co...
    Follow in Facebook : / learningpointsdotin
    Follow in Linkedin : / learning-points
    Follow in Instagram : / learning_points
    Visit Learning Points website for more topic : learning-points...
    #api #laravel #laravel8 #laravel8x #passport #auth

Комментарии • 51

  • @kayfour6671
    @kayfour6671 2 года назад +2

    This is awesome I've tried so many times to get this laravel/passport api right and this tutorial here does it for me! Thank you!

  • @fortineaufranck303
    @fortineaufranck303 3 года назад +2

    Nice video ! thanks for the exemple at the end to explain how it works. Great job !

  • @mubafaw
    @mubafaw 4 месяца назад

    Nicee 😊

  • @soumyanaskar9441
    @soumyanaskar9441 3 года назад +1

    Very Helpful. Deserve subscription and like.

  • @abhishekanand9910
    @abhishekanand9910 3 года назад +1

    Very well explained

  • @AhsanKhan-gm3sx
    @AhsanKhan-gm3sx 3 года назад +1

    Explained nicely. Thanks brother

  • @malikabdulsamiawan4085
    @malikabdulsamiawan4085 3 года назад +1

    great tutorial thnx

  • @mohamedikbalforever
    @mohamedikbalforever 3 года назад +1

    I like your content, keep doing great things !!!

  • @szymonjol5575
    @szymonjol5575 3 года назад +1

    Thanks man Great video :D

  • @augischadiegils.5109
    @augischadiegils.5109 2 года назад

    ❤️❤️❤️❤️❤️

  • @cesargracelouzala1551
    @cesargracelouzala1551 3 года назад +1

    Excellent 😊😊😊😊

  • @dextersia5409
    @dextersia5409 3 года назад +2

    Good video, but I would like to know more about the relationship between database table and the connection between backend code with database

  • @cocl6331
    @cocl6331 2 года назад

    I understand how to test using Postman but how to register using form in client apps and redirect back for validation errors?

  • @boonchuanlim8096
    @boonchuanlim8096 3 года назад +1

    Nice video, and i could follow it step by step.
    Just curious, what is the used of BlogController as shown in the end?
    Which video do talking about this BlogController?

    • @LearningPointsCourses
      @LearningPointsCourses  3 года назад

      To make it authorized.
      Please check from 22:30
      I installed passport and all the related configuration also done.
      Then, using blog controller get-blog link can be accessible. Suppose if you want to make that link private, means without valid token you don't want to open that link.
      That time I am passing that link with middleware - so that without valid token the link will not open.
      I am just showing you and example - to know how the auth is working, and how you can restrict a link with token.

  • @reni_christian
    @reni_christian 2 года назад

    How to get or create Refresh Token and get both access token & refresh token while registering or login?

  • @junynhuspt
    @junynhuspt 3 года назад +1

    thanks

  • @junnysolanovega6165
    @junnysolanovega6165 Год назад

    Thanks for the video, i have a question, how can i get token and refresh token?

  • @pankajbarnwal6195
    @pankajbarnwal6195 2 года назад

    I found an error undefined method accessToken in login function, in registration function it works fine. Please help 🥺

    • @LearningPointsCourses
      @LearningPointsCourses  2 года назад

      Ok. May be some typo or some error. Please check once. If not solved - Please contact me in through the facebook link. Link are provided in the description section.

  • @hanumansawale2429
    @hanumansawale2429 3 года назад +1

    Nice explain but how to generate refresh token also while generate access token

    • @LearningPointsCourses
      @LearningPointsCourses  3 года назад +1

      You can do it easily.
      Do a request to /oauth/token with the POST method and pass the 'grant_type' => 'refresh_token' and along with this put the previous refresh_token, client_id, client_secret and you will get another response containing other tokens.

  • @codewithus567
    @codewithus567 3 года назад

    Some process of this authentication is difficult to understand can you make one more video to this topic!

  • @jintuthomas6766
    @jintuthomas6766 3 года назад

    hi..when using mongodb... can not install passport:install cmd....can u help me please?

  • @hassansarfaraz3930
    @hassansarfaraz3930 2 года назад

    I can't login after register. I don't know why? The error is unauthenticated

    • @LearningPointsCourses
      @LearningPointsCourses  2 года назад

      To login you need to pass token along with login credential. The token is basically for authentication purpose.

    • @hassansarfaraz3930
      @hassansarfaraz3930 2 года назад

      @@LearningPointsCourses thanks

  • @nidhiagarwal6999
    @nidhiagarwal6999 3 года назад +1

    Plz provide me logout

    • @LearningPointsCourses
      @LearningPointsCourses  3 года назад

      Hey. Logout functionality uploaded. Please see that tutorial and comments your feedback.

  • @nidhiagarwal6999
    @nidhiagarwal6999 3 года назад +1

    Plz provide me code for logout api laravel 8 passport

    • @LearningPointsCourses
      @LearningPointsCourses  3 года назад

      Sure. I will create a small video for logout.

    • @jintuthomas6766
      @jintuthomas6766 3 года назад +1

      @@LearningPointsCourses do u create it???? this is a nice vedeo

    • @LearningPointsCourses
      @LearningPointsCourses  3 года назад +1

      @@jintuthomas6766 Thanks. Logout functionality uploaded. Please see that tutorial and comments your feedback.

    • @jintuthomas6766
      @jintuthomas6766 3 года назад

      @@LearningPointsCourses thank u ...and can u share the link