Rust Project Tutorial - Authentication Server Using Warp + JWT

Поделиться
HTML-код
  • Опубликовано: 5 июл 2024
  • In this course, you will learn how to use Rust to create an authentication server. The course provides a comprehensive guide on user data management, structure, and token-based authentication. Special attention is given to error handling, JWT issues, and practical solutions for common challenges. Concluding with a hands-on demo, viewers will gain a thorough understanding of token creation and user management in modern applications
    ✏️ Course created by ‪@AkhilSharmaTech‬
    0:00:00 Introduction and setup
    0:06:42 Admin and user authentication
    0:15:53 User data handling and roles
    0:28:54 Introduction to user structures and attributes
    0:45:41 Token management and claims analysis
    1:01:48 Deep dive into roles and tokens
    1:05:03 Error handling and permissions
    1:14:58 Advanced error insights and JWT issues
    1:29:19 Code analysis and issue resolution
    1:31:24 Final touches and RS file exploration
    1:34:50 Demo review and token creation
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 davthecoder
    👾 jedi-or-sith
    👾 南宮千影
    👾 Agustín Kussrow
    👾 Nattira Maneerat
    👾 Heather Wcislo
    👾 Serhiy Kalinets
    👾 Justin Hual
    👾 Otis Morgan
    👾 Oscar Rahnama
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

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

  • @SachinSharma590
    @SachinSharma590 9 месяцев назад +32

    Add more rust tutorial

  • @grotsunfull
    @grotsunfull 9 месяцев назад +3

    Great job!

  • @slip-shape994
    @slip-shape994 9 месяцев назад +6

    I love 😘 this channel please keep it up

  • @tsolanoff
    @tsolanoff 9 месяцев назад +6

    Great video! But it would be better to add all required dependancies at the beginning, right before coding features related on them...

  • @samvidjhaveri634
    @samvidjhaveri634 9 месяцев назад +12

    Hey Akhil, congratulation on the tutorial. Tutorial is concise and you are making a good job explaining the stuff. But I am around 50mins in the tutorial and it's all just you writing the code without pauses/breaks in your code where I can try and run the code and make sure it is working correctly.
    This is just one big ~300 lines of code which is not run until much later in the project. I would highly suggest that this should have more structured where you build one functionality at a time that can run and then move onto expanding it. For example, something like error handling could have been introduced later as a separate section.
    Good luck!

    • @knowledgedose1956
      @knowledgedose1956 9 месяцев назад

      Totally agree about this. thank you for this comment

    • @maheshsale
      @maheshsale 8 месяцев назад

      Exactly 💯

  • @user-rk5zi6ic7f
    @user-rk5zi6ic7f 6 месяцев назад

    which rust playlist are you talking about where you have taught tokio and serde

  • @soumadip_skyy_banerjee
    @soumadip_skyy_banerjee 9 месяцев назад +2

  • @futureworldnature
    @futureworldnature 9 месяцев назад +2

    ❤❤

  • @astrakernel
    @astrakernel 9 месяцев назад +4

    I prefer Axum (or Actix) framework Framework over warp

    • @vacoder
      @vacoder 8 месяцев назад

      Why?

    • @TheOmfg02
      @TheOmfg02 5 месяцев назад

      Yeah, Axum or Actix are better but OP did state this is meant to only ever be an auth server, not a full blown server with all bells and whistles@@vacoder

    • @rgpflash1561
      @rgpflash1561 3 месяца назад

      ​@@TheOmfg02 I don't think so, Axum isn't type safe contrary to Warp

  • @gertrudessampaio8689
    @gertrudessampaio8689 7 месяцев назад +1

    More rust video

  • @TheOmfg02
    @TheOmfg02 5 месяцев назад +1

    The login route works but the admin and user routes do not. What seems to happen is the login routes get called first despite calling a /user route

    • @TheOmfg02
      @TheOmfg02 5 месяцев назад

      Found the bug. In your video you set the constant BEARER to the string "bearer" but really it should have an extra space e.g "Bearer ".

  • @oussamasf
    @oussamasf 9 месяцев назад +2

    Please someone can drop the name of his vs code's theme

  • @amlayla
    @amlayla 9 месяцев назад +1

    Great video, given you a sub and like ! Please make a another video on converting html website to Wordpress theme. Please let your html website have Author and authors page, tags page with each tag and its own post under, signup and signin page, membership page, comment section, single page, eror 404 page, archive page and more. Precisely for a blog. Waiting for my video request. Thank you in advance🙈

    • @knowledgedose1956
      @knowledgedose1956 9 месяцев назад

      look up internet lots and lots of stuff out there

  • @kishan6984
    @kishan6984 9 месяцев назад +10

    I am watching and done with The first 15mins of tutorial but it's all over the place whatever the guy is speaking :(
    EDIT: Things add up after 40min

    • @AkhilSharmaTech
      @AkhilSharmaTech 9 месяцев назад

      Hey bro, this is not a basic rust tutorial, it's actually a complete project. Knowledge of basic rust is important for this

    • @kishan6984
      @kishan6984 9 месяцев назад

      @@AkhilSharmaTech yup I got it after I crossed 35mins