Secure Spring Boot Web API using JWT and Spring Security - JWT Authentication and Authorization

Sdílet
Vložit
  • čas přidán 19. 07. 2024
  • Implement user registration, authentication and authorization using JSON Web Token (JWT) in Spring Boot REST API. Secure Spring Boot Web API using Spring Security, JWT, MySQL database and data validation. Store registred users in the database and authenticate users from database using Spring JPA. JWT authentication and authorization using Spring Boot, Spring Security and MySQL.
    ************************
    Source Code on Patreon : / secure-spring-102904182
    Video Part 2 on Patreon : / secure-spring-102904182
    Full Spring Boot Course : Not available yet
    ************************
    🔥 Other Udemy Courses :
    Create ASP.NET Core Web Application : www.udemy.com/course/aspnet-c...
    Build ASP.NET Core Web API : www.udemy.com/course/build-as...
    Learn React JS Step by Step : www.udemy.com/course/build-co...
    ************************
    Video Content
    (00:00) Introduction
    (01:58) Create Entity Model and Database Table
    (05:41) Create SecurityFilterChain and JwtDecoder
    (08:06) Create AuthenticationManager
    (10:12) Create JWT
    (11:24) Register Users
    (15:12) Authenticate users
    (17:52) Authorize users using JWT

Komentáře • 10

  • @kitkarlson4044
    @kitkarlson4044 Před měsícem

    This video saves me, thanks for that.🙏🏿🙏🏿

  • @eray7467
    @eray7467 Před 2 měsíci

    What a benefical video 👍🏻

  • @briangicharu2899
    @briangicharu2899 Před 3 dny

    Is it okay to have entity operation code on a controller? Methinks it all should be in the service layer

  • @souhaiebsaidi3904
    @souhaiebsaidi3904 Před 26 dny

    Thank you for this tutorial 😀
    I want to ask. How can i configure the cors when i want to connect a frontend application to this api.
    I have always a cors problem when requesting this api via browser (simple form that contains username & password)

  • @ntwariabdoulmalik4520
    @ntwariabdoulmalik4520 Před 2 měsíci

    This video is really helpful..., A link for party 2

  • @cheeks_of_the_boreal_valley

    great tutorial, but i wish you explained how to manage logouts ( jwt token blacklisting and such etc..)

  • @AnubhabKundu
    @AnubhabKundu Před měsícem

    How did you get the key?

    • @BoostMyTool
      @BoostMyTool  Před měsícem +1

      the key is the server secret. you can create it randomly

    • @KHKH-wy4yj
      @KHKH-wy4yj Před 18 dny

      $ openssl rand -base64 32