1 00:00:00,510 --> 00:00:07,920 Before starting this hour and just increased this exploration time so that it won't expire within 30 2 00:00:07,920 --> 00:00:12,230 seconds for that and go to the main class and start the summer. 3 00:00:12,510 --> 00:00:16,040 Meanwhile, I'll also open the login page of the application. 4 00:00:16,320 --> 00:00:18,770 So now we are on to the login page of the application. 5 00:00:18,780 --> 00:00:20,790 Let's try to open the console as well. 6 00:00:21,030 --> 00:00:24,330 Entering the credentials of the user on submitting. 7 00:00:24,330 --> 00:00:29,980 I'm able to login successfully if you go and see to the application tab. 8 00:00:30,000 --> 00:00:36,150 There are no cookies right now sealed, which is one of the secure approach that we are going to follow 9 00:00:36,150 --> 00:00:37,440 inside our application. 10 00:00:37,560 --> 00:00:42,170 And let's try to go and see inside the network tab for user operation. 11 00:00:42,420 --> 00:00:50,280 You can see here in the response I have received and header with the name Alteration and it's JWT token 12 00:00:50,460 --> 00:00:58,380 so we can try taking this token and paste in the JWT website to understand what the values that we passed 13 00:00:58,590 --> 00:00:59,760 and based here. 14 00:01:00,090 --> 00:01:03,270 As you can see, the beauty ID card decoded. 15 00:01:03,420 --> 00:01:10,170 Our header has metadata about the algorithm that we have followed and that body has all the values that 16 00:01:10,170 --> 00:01:10,770 we send. 17 00:01:11,250 --> 00:01:18,810 Issuer is the one who issued the token and subject of the token and what are the logged in user name 18 00:01:18,810 --> 00:01:24,600 detail and his rules and authorities associated and ensure that. 19 00:01:24,720 --> 00:01:32,610 What is the issue that you can see how you should act on this date and expiring is going to after three 20 00:01:32,610 --> 00:01:33,060 days. 21 00:01:33,090 --> 00:01:39,780 So now I try to dampen this value on the you way by putting a breakpoint in the interceptor. 22 00:01:39,900 --> 00:01:46,650 So let's try to keep a breakpoint here and making an request to one of the operation. 23 00:01:46,650 --> 00:01:50,580 And you can see this is my JWT token value. 24 00:01:50,820 --> 00:01:57,090 I'm going to just remove one character in the middle and release the breakpoint. 25 00:01:57,090 --> 00:02:06,210 Can see I got an error 500 because there is an exception happen while evaluating this stock. 26 00:02:06,210 --> 00:02:12,910 And on the backend due to that error, I draw an exception and there is no response came to the user. 27 00:02:13,200 --> 00:02:19,510 So this way we can protect our application using JWT tokens. 28 00:02:19,590 --> 00:02:27,810 Now let's try to understand how the expiration of the token will be handled by the spring security framework 29 00:02:27,960 --> 00:02:28,890 in that next world. 30 00:02:28,980 --> 00:02:29,450 Thank you. 31 00:02:29,460 --> 00:02:29,850 And by.