1 00:00:00,180 --> 00:00:04,870 In the previous video, we have built all the services that need needed for our application. 2 00:00:04,890 --> 00:00:09,630 So now let's try to test them with the default configurations provided by this. 3 00:00:10,080 --> 00:00:15,300 In the previous section, we tested the welcome service, which is the only service that is available. 4 00:00:15,310 --> 00:00:21,910 But right now we have six services available inside our application, as we can expect by default. 5 00:00:22,230 --> 00:00:30,690 Security will secure all the services so that users can't access it without authentication and authorization 6 00:00:30,870 --> 00:00:32,680 before testing these services. 7 00:00:32,700 --> 00:00:38,530 Let's try to update our Springboard Application Strategy class with the component scan annotation. 8 00:00:38,800 --> 00:00:45,030 The reason that we have to do this is it's our controller classes and the springboard starting application 9 00:00:45,030 --> 00:00:46,860 are in two different packages. 10 00:00:46,860 --> 00:00:53,400 We have to do this configuration so that our spring board application, while it is voting, it will 11 00:00:53,400 --> 00:00:56,790 know what all the other packages it has to scan. 12 00:00:57,390 --> 00:00:59,460 So now we have done the configuration. 13 00:00:59,580 --> 00:01:03,470 Let's try that application using them as our application. 14 00:01:03,690 --> 00:01:10,500 So as soon as the console shows that the server started at eight zero eight zero successfully and you 15 00:01:10,500 --> 00:01:13,180 can see there is no password displayed in the console. 16 00:01:13,200 --> 00:01:17,840 The reason is that we have provided our own credentials in the application that properties. 17 00:01:17,910 --> 00:01:24,600 Now let's try to go to the oarsman application and test all the services that we have built as of now. 18 00:01:25,990 --> 00:01:32,940 For service that I will try to test is contact service, so I have not added any authorization. 19 00:01:33,040 --> 00:01:38,830 So the basic expectation right now that we have is by default, spring security will secure all the 20 00:01:38,830 --> 00:01:42,580 services that we have configured inside our application. 21 00:01:42,620 --> 00:01:49,000 So since this is our Get Mantega select target and given the end point to warrant, I'm clicking on 22 00:01:49,000 --> 00:01:49,510 the sign. 23 00:01:49,690 --> 00:01:52,000 You can see it's unauthorized. 24 00:01:52,030 --> 00:01:54,280 That means I have not provided any credentials. 25 00:01:54,280 --> 00:01:58,650 That means in this scenario, the survey's giving responds with the four zero. 26 00:01:58,970 --> 00:02:07,690 Similarly, let's try to get the other services like Natixis, which I'll get the same response by my 27 00:02:07,720 --> 00:02:17,310 account in response four zero one and my balance again, the same response followed by my loan. 28 00:02:18,130 --> 00:02:20,920 You can expect the same rate for 01. 29 00:02:21,310 --> 00:02:27,820 Finally for Kautz, also with the party's minecart response is for zero. 30 00:02:28,170 --> 00:02:37,360 That means by default, spring security will always try to secure all the services associated with the 31 00:02:37,360 --> 00:02:38,020 application. 32 00:02:38,140 --> 00:02:40,390 But our requirement is different. 33 00:02:40,570 --> 00:02:49,510 Our requirement is we want to make sure that notices and contact services should be open for everyone 34 00:02:49,660 --> 00:02:53,430 and they should not be any security associated for it. 35 00:02:53,560 --> 00:02:56,970 Let's try to configure that in the next section by.