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

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.
主站蜘蛛池模板: 江阴市| 桐城市| 周宁县| 大名县| 新闻| 宁陵县| 犍为县| 太白县| 获嘉县| 广德县| 渭源县| 北碚区| 彩票| 阿合奇县| 濉溪县| 孟连| 卓资县| 酉阳| 紫金县| 富宁县| 徐闻县| 桐梓县| 河源市| 石河子市| 东平县| 水富县| 旬阳县| 云林县| 资兴市| 哈尔滨市| 西充县| 兴国县| 湛江市| 兴仁县| 德庆县| 泰安市| 锦州市| 东丽区| 托克逊县| 福建省| 柯坪县|