Authentication and Authorization using JWT Token and Roles-Based Access Control | Quarkus Tutorial

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • ✅ Authentication and Authorization using JWT Token and Roles-Based Access Control | Quarkus Tutoria | Quarkus Tutorial | QUARKUS | CloudNative | Java
    ⌚ Timestamps
    00:00 Introduction | Quarkus Tutorial
    I am Giuseppe Scaramuzzino and you can find me on Twitter @GiuseScara to provide feedback or discuss anything about this video 🙂
    GitHub Repository:
    github.com/Giu...
    What is Quarkus?
    Quarkus is a Cloud Native, (Linux) Container First framework for writing Java applications. Quarkus is a MicroProfile implementation that focuses on efficiently running Java applications in containers in general and Kubernetes in particular. The MicroProfile project is aimed at
    optimizing Enterprise Java for the microservices architecture.
    quarkus.io/
    What is JWT?
    JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.
    What is RBAC?
    Role-Based Access Control (RBAC) attributes permissions to a user based on their business responsibilities. As the most common access control system, it determines access based on your role in the company-ensuring lower-level employees aren’t gaining access to high-level information.
    📃 Leave me a comment
    ------------------------------------------------------------------------------------------------
    Follow me here for more content:
    🐦 TWITTER ‧ / giusescara
    💻 GITHUB ‧ github.com/Giu...
    🎬 RUclips: / giuseppescaramuzzino
    🌐 LINKEDIN ‧ / giuseppe-scaramuzzino
    🎬 Watch related playlists and videos
    / @giuseppescaramuzzino
    Quarkus | JWT Token | RBAC | Roles-Based Access Control | Java | Cloud-Native | Authorization | Authentication
    #Quarkus #CloudNative #Java

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

  • @zvonimirkorman1147
    @zvonimirkorman1147 2 года назад +12

    Thank you go your guide!
    Just a friendly advice: At 18:23 you made a cut in the video in which you changed the jwt issuer value from amazon-cart to amazon-jwt and you didn't say anything about it. I spent hours trying to fix it because the program was not working and I got unauthorized post request until I manually went through each line of existing code and comparing it to mine. this field is new to me and I make mistakes easily. For experienced people I know this is not a problem but for new people it would really help a lot if you said it in the video. I hope you understand my point of view.
    Everything else is spot on!

  • @abrahammoyo3457
    @abrahammoyo3457 2 года назад +6

    This guy makes hard things easy!!!!! I like the stepwise building of application.

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

    I came here just learn something about jwt with quarkus but this video contains lots of good practices. Thank you very much

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

    Such a masterpiece. It's good to tell everyone that we don't need keycloak to secure our endpoint. Especially when we want to go live asap without burning a lot of money. Thank you

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

      I'm glad you found the information valuable! If you have any other questions or need further clarification on this or any other topic, feel free to ask. Thank you for your kind words!

  • @joseaugustodossantossilva1149
    @joseaugustodossantossilva1149 2 года назад +1

    love you channel, thanks for exposing so many rich content like this

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

    thanks for this awesome tutorial, made it from start to finish.

  • @usmansheikh8582
    @usmansheikh8582 2 года назад +1

    Very helpful 👌👌✔✔
    Thanks for the video 👍👍
    Waiting for your next video about "Bcrypt in quarkus"
    Great content👌👌

  • @walala14
    @walala14 10 месяцев назад

    Video utilissimo, grandissimo Giuseppe.

  • @angelogoncalvesdias4504
    @angelogoncalvesdias4504 2 года назад +1

    Eccezionale Giuseppe!!!

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

    GitHub Repository:
    github.com/GiuseppeScaramuzzino/quarkus-jwt-auth

  • @PauloSantos-yu1tn
    @PauloSantos-yu1tn Год назад +1

    Love quarkus

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

    Nicely and clearly explained, thanks for such clear ideas and demos.

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

    Brilliant!!! you just gave me a head-start on my new Job

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

      That's fantastic to hear! Congratulations on your new job, and I'm glad I could assist. If you have any more questions or need further information as you continue your journey, don't hesitate to ask. Best of luck and success in your new role! 🌟🚀

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

      @@GiuseppeScaramuzzino Thank you

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

      Thanks again @GiuseppeScaramuzzino . I need some information on how to verify that the JWT being added to the Bearer is the actual token, from what I have built ones I add the Bearer token to the header it grants access whether correct or not.

  • @shubhendushekhar7649
    @shubhendushekhar7649 2 года назад +1

    Very helpful buddy.

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

    Grand merci for the video. Seems interesting to investigate Keycloak integration with external services such as Google, Facebook & etc sign in :)

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

    you saved my day! thank you

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

    Excellent video

  • @developersmill1193
    @developersmill1193 11 месяцев назад +1

    Hi, great tutorial, thank you! I am actually working on some other case. I am trying authorize some resource using Quarkus. I am passing the access token in headers, but when I am using quarkus-smallrye-jwt library it actually checks/validates the OpenId token/JWT token. The access token that I have is not a JWT token. How to force Quarkus when using @Authenticated annotation to use/validate access tokens. Maybe different lib is needed for that. SO to summ up how to validate access token on backend using quarkus with adnotation @Authenticated ?

  • @alaashireef
    @alaashireef Год назад +1

    How can I delete a token after logout?

    • @imaqtkatt
      @imaqtkatt Год назад +1

      you can't delete a jwt token, just let it expire

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

    I get an exception that my ssh key is only 2047 bits instead of 2048 and therefore is not accepted the JWT generation. Like wtf?

  • @dennis.geurts
    @dennis.geurts Год назад

    please note that System.currentTimeMillis() + 3600 most probably is not the expireAt that you actually wanted to set, should be more st like System.currentTimeMillis()/1000 + 3600