Genuine Coder
Genuine Coder
  • Видео 199
  • Просмотров 4 380 131
JWT Authentication & Authorization with Spring Security | Step-by-step tutorial
This is a comprehensive tutorial on JSON Web Tokens (JWT) to master its implementation and use in securing web applications. This video covers the basics of JWT, including its structure, how to generate and use it for authorization, and a comparison of different signing algorithms. This step-by-step tutorial is perfect for beginners and for those looking to enhance their Spring boot security skills.
Spring Security Complete Tutorial: ruclips.net/video/9J-b6OlPy24/видео.html
More Spring boot full courses: ruclips.net/p/PLhs1urmduZ2-W9wfEktEnSYJWrdoLUdOk
📚 Chapters:
(00:00:00) Introduction
(00:01:13) 1. Introduction to JSON Web Token
(00:03:34) 1.1. Anatomy of a JWT
(00:07:46) 2. Sample tutorial ...
Просмотров: 4 218

Видео

Microservices using Spring Boot 3 | Full Course
Просмотров 2,7 тыс.2 месяца назад
Learn how to create comprehensive real-world microservice applications using the latest Spring Boot 3 framework. We will develop a video streaming app using microservices. This tutorial covers all the essential aspects of microservice development, providing an in-depth experience for building applications in this architecture. We will begin by exploring the fundamentals of microservice architec...
Spring Boot Complete Tutorial for Beginners [Latest] [2024]
Просмотров 3,8 тыс.3 месяца назад
Master the Spring Boot framework with this comprehensive tutorial. This tutorial is based on the latest version of Spring Boot, the 2024 Spring Boot version 3.x series. It covers everything from the basic concepts of Spring Boot to Spring JPA, RESTful API, Profiles, and even health tracking. This step-by-step tutorial will help you to learn Spring boot from scratch. Spring Boot Playlist: ruclip...
Spring Boot 3 Security Tutorial | Authentication and Authorization | [2024]
Просмотров 28 тыс.4 месяца назад
Become a Spring Boot Security expert with this in-depth tutorial! Dive into essential concepts like authentication, authorization, in-memory user management, database user management, custom error and login screens, dynamic user registration and login, and more. This tutorial will guide you to secure your applications with the latest Spring Boot 3.2 (2024 release)! 📚 Chapters: (00:00) Introduct...
Spring Reactive Full Course | Spring Boot WebFlux | Project Reactor | Reactive MongoDB
Просмотров 3,9 тыс.4 месяца назад
Learn Java reactive programming with this comprehensive tutorial that covers Spring Boot Reactive, Project Reactor, Spring Boot WebFlux, Reactive MongoDB, and more. From fundamental concepts to advanced techniques, this tutorial guides you through each step with real-world examples and actual database queries, empowering you to master reactive programming. The tutorial utilizes the latest versi...
JavaFX Circular Reveal Scene Transition Animation
Просмотров 4,2 тыс.2 года назад
JavaFX scene changing / transition animation with circular reveal effect. This tutorial discusses how to reveal the second JavaFX scene with a circular reveal effect on top of the first scene. We will make use of JavaFX Circle shape to initially set up the shape of the 2nd scene. Then we will increase the radius with a TimeLine animation. JavaFX Animation Tutorials: ruclips.net/p/PLhs1urmduZ2-4...
Setup App Navigation and Finish the Project | Chapter #6
Просмотров 3,7 тыс.2 года назад
In this chapter, we will add activity navigation support to the Android client app. We will then fix some usability issues and then wrap up this project. You can find this project in GitHub at github.com/afsalashyana/Spring-boot-tutorial Tags: #Android #Java #SpringBoot Introduction: (00:00) Adding FAB button: (00:55) Configure back button for employee form: (05:46) Add row separator to Recycle...
Populate Android List View with Data from Spring Boot Server | Chapter #5
Просмотров 7 тыс.2 года назад
In this chapter, we will learn how to fetch all the employee data from the Spring Boot Server and show it in an Android RecyclerView. For fetching the data, we will make use of the GET REST endpoint we have created in the chapter 3. You can find this project in GitHub at github.com/afsalashyana/Spring-boot-tutorial Tags: #Android #Java #SpringBoot Introduction: (0:00) How do we implement this?:...
Connect Android App To Spring Boot Server | Chapter #4
Просмотров 25 тыс.2 года назад
In this tutorial, we will create a new Android application from scratch that will work as a client to the Spring Boot Server. In the app, we will create a form GUI for entering employee details. Once the form is filled and the save button is pressed, the object will be sent to the server via POST request. The server will then accept the POST request and saves the employee into the MySQL databas...
JavaFX Background Tasks | How to make your GUI smoother, faster and snappier
Просмотров 10 тыс.2 года назад
In this tutorial, we will explore JavaFX Concurrency and learn how to make use of JavaFX Background Tasks to make the JavaFX applications run faster, smoother, and snappier. JavaFX main thread (or the GUI thread) is responsible for drawing and refreshing the contents shown on the screen 60 times a second. That means the delay between each frame is only 16.67 milliseconds. If we do complex calcu...
Build Spring Boot REST API | GET and POST Methods | Chapter #3
Просмотров 12 тыс.2 года назад
In this tutorial, we will learn how to create REST API using spring boot. We will create two endpoints. One GET endpoint for getting all the employee objects from the server and one POST endpoint for accepting new employees that need to be saved. For marking a class as a REST Controller, spring provides an annotation "@RestController". Then we can write functions in the class that creates new R...
Spring Boot MySQL Database Setup with JPA | Chapter #2
Просмотров 10 тыс.2 года назад
In this tutorial, we will explore how to use the spring boot CRUD repository to easily create, retrieve, update and delete database objects. First, we will add a new database Entity model and set up an auto-incremented integer primary key for the model. In Spring JPA, you can add @Entity annotation to mark a class as a database entity. It will then be automatically taken by the Spring JPA and a...
Spring Boot Server & Android Client App Tutorial | Introduction and project setup | Chapter #1
Просмотров 23 тыс.2 года назад
In this tutorial, we will start our new project on creating a Spring boot server that provides REST API for Android client apps. We will be connecting Spring boot to a MySQL database using the "Spring Data JPA" plugin. We will include the "Spring boot Web" dependency into our project so that we can set up an HTTP server and provide REST API for the Android app that we will build. This is the ve...
Covid-19 Status Desktop Widget | JavaFX Tutorial 4/5 | Finishing the Application Development
Просмотров 2,4 тыс.4 года назад
In this chapter, we will make the hardcoded values user editable by moving them to a JSON file. We will make use of the GSON library to convert a java model POJO class to JSON string and vice versa. 3 values will be stored in the settings file. 1. The interval at which the scheduler should refresh the data from API. 2. The country of which we need the COVID data 3. Country code When the applica...
Covid-19 Status Desktop Widget | JavaFX Tutorial 1/5 | Introduction
Просмотров 6 тыс.4 года назад
In this tutorial series, we will develop a real-time coronavirus (covid19) desktop widget using JavaFX version 14. This is the first chapter in the series and in this chapter, we will discuss getting data from an online API. We will make use of the Retrofit2 library for HTTP communication. It allows us to make GET requests to the API and it will respond with JSON string. We can then parse the s...
Covid-19 Status Desktop Widget | JavaFX Tutorial 3/5 | Finishing GUI and Auto-Refresh Scheduler
Просмотров 1,8 тыс.4 года назад
Covid-19 Status Desktop Widget | JavaFX Tutorial 3/5 | Finishing GUI and Auto-Refresh Scheduler
Covid-19 Status Desktop Widget | JavaFX Tutorial 5/5 | Making Executable Release Package
Просмотров 1,9 тыс.4 года назад
Covid-19 Status Desktop Widget | JavaFX Tutorial 5/5 | Making Executable Release Package
Covid-19 Status Desktop Widget | JavaFX Tutorial 2/5 | Designing Widget GUI with Scene Builder
Просмотров 2,2 тыс.4 года назад
Covid-19 Status Desktop Widget | JavaFX Tutorial 2/5 | Designing Widget GUI with Scene Builder
JavaFX 14 (2020 Release) Introduction - Creating a new project with JDK 11 and JDK 14
Просмотров 24 тыс.4 года назад
JavaFX 14 (2020 Release) Introduction - Creating a new project with JDK 11 and JDK 14
Android Tutorial 14: Create and Set Android App Launcher Icon
Просмотров 3,6 тыс.5 лет назад
Android Tutorial 14: Create and Set Android App Launcher Icon
Android Tutorial 13: ListView with Cards using Custom Array Adapter
Просмотров 5 тыс.5 лет назад
Android Tutorial 13: ListView with Cards using Custom Array Adapter
Android Tutorial 12: Create Custom Toolbar and Center Title Text
Просмотров 16 тыс.5 лет назад
Android Tutorial 12: Create Custom Toolbar and Center Title Text
Android Tutorial 11 : Imporving Dashboard UI with CardViews
Просмотров 5705 лет назад
Android Tutorial 11 : Imporving Dashboard UI with CardViews
Java Multithreading Tutorial #12: ThreadPools and Executor Services
Просмотров 4,1 тыс.5 лет назад
Java Multithreading Tutorial #12: ThreadPools and Executor Services
Java Multithreading Tutorial for Beginners #11: Daemon Threads
Просмотров 3,8 тыс.5 лет назад
Java Multithreading Tutorial for Beginners #11: Daemon Threads
Android Tutorial 9 : Creating Liked Quotes List View
Просмотров 5275 лет назад
Android Tutorial 9 : Creating Liked Quotes List View
Android Tutorial 10 : Completing 'Liked Quotes' List View
Просмотров 4355 лет назад
Android Tutorial 10 : Completing 'Liked Quotes' List View
Android Tutorial 8 : Creating a Dashboard
Просмотров 9445 лет назад
Android Tutorial 8 : Creating a Dashboard
Java Multithreading Tutorial for Beginners #10: Producer consumer problem
Просмотров 16 тыс.5 лет назад
Java Multithreading Tutorial for Beginners #10: Producer consumer problem
Java Multithreading Tutorial for Beginners #9: Thread Synchronization with Java Locks
Просмотров 8 тыс.5 лет назад
Java Multithreading Tutorial for Beginners #9: Thread Synchronization with Java Locks

Комментарии

  • @MixwellSidechains
    @MixwellSidechains 12 часов назад

    Doesn't work on mac

  • @KirillMvS
    @KirillMvS День назад

    Thank you for the video, it is really good as Spring Security in action:) I would appreciate the same video for other relativaly difficult topics for beginners. Subscribed.

  • @rishikeshsarangi1245
    @rishikeshsarangi1245 День назад

    i dont understand how ADMIN is able to access all the content in your code. I had to define my filter chain this way for admin to be able to access both. ``` .authorizeHttpRequests(registry -> { registry.requestMatchers ("/authenticate", "/register/user").permitAll(); registry.requestMatchers("/admin/**").hasRole("ADMIN"); registry.requestMatchers("/user/**").hasAnyRole("ADMIN","USER"); registry.anyRequest().authenticated(); ```

  • @johncarter2338
    @johncarter2338 2 дня назад

    Hi, It's a great video. I am facing a slight problem. My Authentication Success Handler part is not working properly. I have checked the codes but there isn't problem. Is there anything I can do solve this ?

  • @aitorzatica4291
    @aitorzatica4291 3 дня назад

    What's the difference with using OAuth2, and when do we have to use each of them?

  • @chaitanyagupta6668
    @chaitanyagupta6668 3 дня назад

    [QUESTION] Why is the jwt auth filter to be brought before usernamepasswordauthentication filter? I still didn't get. Some kind soul please help me out on this?

    • @GenuineCoder
      @GenuineCoder 3 дня назад

      50:48 UsernamePasswordAuthenticationFilter is actually for form-based login (This one ruclips.net/video/9J-b6OlPy24/видео.htmlsi=_HI2Z6AbMDh2-SgL&t=282) and is provided automatically by the Spring boot. The UsernamePasswordAuthenticationFilter and JwtAuthenticationFilter both handle authentication but in different ways. To function correctly, the JwtAuthenticationFilter should be called first. The JwtAuthenticationFilter intercepts the request, checks for the presence of a JWT token, validates it, and sets up the security context. If the token is valid, the request proceeds with the authenticated context. If the token is not valid or absent, the request will then be processed by the default authentication mechanisms, such as the UsernamePasswordAuthenticationFilter. When the UsernamePasswordAuthenticationFilter is called before the JwtAuthenticationFilter, any request that doesn't have the proper username and password will be immediately rejected with an unauthorized status without giving the JwtAuthenticationFilter a chance to authenticate the user based on a JWT token. Therefore, the JwtAuthenticationFilter must be called before the UsernamePasswordAuthenticationFilter.

  • @SaqibWani-p2i
    @SaqibWani-p2i 4 дня назад

    Thank you for your precious time and effort.

  • @onkx1987
    @onkx1987 4 дня назад

    I have exactly same as you did, but whenever i am trying to access /authenticate endpoint, i am getting NullpointerException on line. authHeader.substring(7); in JwtAuthenticationFilter, but i am getting token generated in response. What could be the problem.?

  • @ajithkrkd2562
    @ajithkrkd2562 4 дня назад

    AOP video cheyyuo

  • @RN-jo8zt
    @RN-jo8zt 5 дней назад

    i think it's Symmetric Cryptography my knowledge: A single secret key is used for both creating and validating the token. Both the issuer and the verifier need to have access to this key. my question how verifier will get this secret key? like i will send him personally or it will store in cloud .so he/she can access it , or i will send in mail,teams....

  • @wilsonvaboum1338
    @wilsonvaboum1338 6 дней назад

    Merci pour cette formation complet et structurée, well done !

  • @darthrevan6861
    @darthrevan6861 6 дней назад

    Is this the newest version? Because no matter how many Spring Security tutorial I watch, the SecurityConfig is always written like this, but I always have to use a complete RequestMatcher, otherwise I get this error: This method cannot decide whether these patterns are Spring MVC patterns or not. If this endpoint is a Spring MVC endpoint, please use requestMatchers(MvcRequestMatcher); otherwise, please use requestMatchers(AntPathRequestMatcher).

  • @fatmagyulchitakova5682
    @fatmagyulchitakova5682 6 дней назад

    Great video! Thanks!

  • @fatmagyulchitakova5682
    @fatmagyulchitakova5682 6 дней назад

    Thanks!

  • @zoomer619
    @zoomer619 7 дней назад

    sir I need a little help regarding your Library management project. Im trying to get done with a small presentation and Ive seen your project. When I use it, it shows a 'help' box linkin to your youtube channel. I want it to hide for the time being. Can you help me with it, with your github. You can direct me what can I do to remove it from your repo that I would download.

    • @GenuineCoder
      @GenuineCoder 3 дня назад

      You can remove links to my channel and LinkedIn profiles from the about page FXML file github.com/afsalashyana/Library-Assistant/blob/master/src/library/assistant/ui/about/about.fxml

  • @thushanchathuranga6694
    @thushanchathuranga6694 8 дней назад

    Thank you for this amazing tutorial. Please make more videos on Java reactive programming explaining the real-world scenarios.

  • @wilsonvaboum1338
    @wilsonvaboum1338 10 дней назад

    Bravo !!! full explantion

  • @ani2anish303
    @ani2anish303 11 дней назад

    Super course 😄.. please keep the courses coming ..i would really love your take on apache kafka..

  • @9-1939
    @9-1939 11 дней назад

    🔥🔥🔥 great tutorial sir

  • @sinhvienit-o7f
    @sinhvienit-o7f 12 дней назад

    Thank you for this tutorial , video is so very good

  • @nikhil4yourhelp670
    @nikhil4yourhelp670 13 дней назад

    can we use Roles as enum it look simple

    • @GenuineCoder
      @GenuineCoder 12 дней назад

      ENUM is a great idea! Handling role as an enum is definitely possible, and I think is better.

  • @MichaelsSoftwareTestingA-wu3xp
    @MichaelsSoftwareTestingA-wu3xp 13 дней назад

    Thank you for this tutorial. I like that you are not just showing the code, but also explain it.

  • @thushanchathuranga6694
    @thushanchathuranga6694 13 дней назад

    Thank you for this wonderful tutorial. I really enjoyed the way you explained the code. Can you add and extend this Spring security series with refreshing tokens, OAuth and practical advantages & disadvantages of using JWT. Can you make a tutorial for OpenID and Keycloak.

  • @kj4saeko333
    @kj4saeko333 15 дней назад

    Thank you for the video, great explanation. Keep it up !

  • @khalifatwaha4212
    @khalifatwaha4212 18 дней назад

    I like the way you explain some of the confusing stuff. I would like more of these tutorials especially on the security, OAuth2 Authorization and Resource Servers and opaque tokens. I wish you the best of life.

  • @Bost-jd7pt
    @Bost-jd7pt 19 дней назад

    Thank you for this wonderful tutorial. it's really helpful. Please, may I know the plugin you used for the graphical code reference information in your IDE?

    • @GenuineCoder
      @GenuineCoder 12 дней назад

      I haven't used any extra plugins. The IDE is Intellij IDEA Ultimate.

  • @whisperhelper5829
    @whisperhelper5829 20 дней назад

    Can you please do a video on unit testing?

    • @GenuineCoder
      @GenuineCoder 12 дней назад

      Thanks for the suggestion. Will look into that.

  • @jadizadi7600
    @jadizadi7600 20 дней назад

    can u do a toturial on how to use MaterialFX dialogs error, info, warn...

  • @panchinrc1993
    @panchinrc1993 21 день назад

    Great video , so simple to understand, thank you! Greetings from Argentina! PD: There is an extension to see colored console messages? Mine it's plain white, thanks!

  • @rahul-java-dev
    @rahul-java-dev 24 дня назад

    Thank you so much for the tutorial, I was able to verify credentials from Db, This is the very first time I was able to do it. But one thing, error pages are being shown--- like 403 or 404.htmls, what could be the reason? I am seeing only the default pages provided by Spring.

  • @naveenkumarreddybadduri7775
    @naveenkumarreddybadduri7775 24 дня назад

    God

  • @Damian64287
    @Damian64287 25 дней назад

    Hi! Thank you very, very much. How to get such cool world web icons for @RestController methods? :)

    • @GenuineCoder
      @GenuineCoder 25 дней назад

      I believe they come with the IntelliJ Ultimate edition. You can try IntelliJ Ultimate trial for free to checkout the latest spring and spring boot features.

  • @pankajthakur9760
    @pankajthakur9760 25 дней назад

    Great well explained . well how we connect the api's with HTML pages ?

  • @mohamadmj6158
    @mohamadmj6158 26 дней назад

    Well explained, it's complete and clear demonstration of how to use spring security

  • @prashlovessamosa
    @prashlovessamosa 26 дней назад

    This playlist is super helpful

  • @varunpareek7020
    @varunpareek7020 26 дней назад

    Hi sir I am getting Access to local host was denied error Do you know how can it be resolved!??

    • @GenuineCoder
      @GenuineCoder 25 дней назад

      Hi, Are you not able to access localhost on browser? If so, double check your spring boot server port.

  • @cheeks_of_the_boreal_valley
    @cheeks_of_the_boreal_valley 27 дней назад

    very comprehensive, easy to understand tutorial. Thank you very much

  • @BlaiseTAYOU
    @BlaiseTAYOU 27 дней назад

  • @thisgnop3177
    @thisgnop3177 27 дней назад

    You're a lifesaver, brother. Find your taste and drink a cup. It's on me :)

  • @kulsumshaikh1686
    @kulsumshaikh1686 27 дней назад

    Hello Sir, the code is running fine with default login but not running well with the customlogin, also even with default login, i'm not able to access home page without logging, I am stuck on this for 3 days even after copying you code entirely it doesn't work could you please suggest a solution for this? @Bean public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception { return httpSecurity .csrf(AbstractHttpConfigurer::disable) .authorizeHttpRequests(registry -> { registry.requestMatchers("/home", "/register/**","/login").permitAll(); registry.requestMatchers("/admin/**").hasRole("ADMIN"); registry.requestMatchers("/user/**").hasRole("USER"); registry.anyRequest().authenticated(); }) .formLogin(httpSecurityFormLoginConfigurer -> { httpSecurityFormLoginConfigurer.loginPage("/login").permitAll(); }) .build(); }

  • @prashlovessamosa
    @prashlovessamosa 27 дней назад

    Thanks Buddy very grateful to you

  • @user-he6sg8jw9t
    @user-he6sg8jw9t 28 дней назад

    Sir what are the frontend frameworks good to learn for springboot backend.

    • @GenuineCoder
      @GenuineCoder 24 дня назад

      Flutter is a great choice at the moment if you want to develop cross-platform applications. I prefer it because of the great community, very active development, growing developer base and of course the material design 3 (MD3) support.

  • @user-he6sg8jw9t
    @user-he6sg8jw9t 28 дней назад

    This is so much clear tutorial.Respect sir.🥰 Its greatful if you can create this kind of tutorial on angular.💛

  • @jayakrishnathammana
    @jayakrishnathammana 29 дней назад

    Excellent explanation

  • @scottanderson6762
    @scottanderson6762 29 дней назад

    You're incredibly smart and helpful. Thank you so much!

  • @Premkumar-es4bx
    @Premkumar-es4bx Месяц назад

    Hi bro,the way you are explaining and writing code is really awesome,keep rocking Can you plz post video for interceptor concept in java spring boot

  • @GenuineCoder
    @GenuineCoder Месяц назад

    Comprehensive Spring Security Tutorial: ruclips.net/video/9J-b6OlPy24/видео.html

  • @pierrelebon6627
    @pierrelebon6627 Месяц назад

    Great explanation, thank you

  • @cozitsyash1301
    @cozitsyash1301 Месяц назад

    Thank you Sir ... Please bring more Spring boot tutorials and its important and advanced concepts Great Learning

  • @cozitsyash1301
    @cozitsyash1301 Месяц назад

    Sir please bring more Spring Boot tutorials and its important topics