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

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.
主站蜘蛛池模板: 珲春市| 建阳市| 麟游县| 赣州市| 延津县| 辽宁省| 武威市| 内江市| 武隆县| 响水县| 郓城县| 孙吴县| 泸西县| 正安县| 商河县| 合肥市| 琼中| 开江县| 新龙县| 鄂托克前旗| 霍州市| 茶陵县| 杨浦区| 旅游| 宁津县| 陕西省| 满洲里市| 马关县| 云和县| 漳州市| 靖安县| 旬阳县| 洪洞县| 新安县| 伊金霍洛旗| 高密市| 崇左市| 鹿邑县| 大足县| 修水县| 招远市|