官术网_书友最值得收藏!

Running the application

Run the project by executing the mvn jetty:run command. Once you see the log shown in the following screenshot, open a browser and go to http://localhost:8080:

Figure 09: Jetty Server running - console log

Once you access the URL, the browser prompts with a default basic authentication dialog, as shown in the following screenshot. Enter the Username and Password as admin/admin@password and click on Log In

Figure 10: Basic authentication dialog in the browser

If your credentials are correct and if the user has either the ADMIN or USER role, you should see the home page as follows:

Figure 11: The home page after successful login
The full project code is available on the book's GitHub page ( https://github.com/PacktPublishing/Hands-On-Spring-Security-5-for-Reactive-Applications) within the jetty-db-basic-authentication   project.
主站蜘蛛池模板: 绿春县| 汽车| 肇东市| 乐至县| 永顺县| 乌鲁木齐县| 荆门市| 邵东县| 泰顺县| 饶平县| 甘南县| 泾川县| 清水河县| 平凉市| 正定县| 揭东县| 图们市| 册亨县| 和平区| 镇远县| 兴海县| 嘉黎县| 新乡市| 交口县| 莎车县| 百色市| 安泽县| 涿鹿县| 罗甸县| 延安市| 曲麻莱县| 定陶县| 曲水县| 枣庄市| 左权县| 澄迈县| 星座| 成武县| 手游| 巩义市| 甘孜|