How to implement authentication and authorization

2019-08-13 14:23发布

I have been implemented my "skeleton" as Spring @MVC 3.0 REST application. Then can anyone please specify me to, how can I perform authentication and authorization with Spring Security, for my stub (client) applications. Thanks.

1条回答
欢心
2楼-- · 2019-08-13 14:57

Your best bet would be looking at the spring security tutorial app which is located in the spring security distribution jar.

From the documentation:

Download the latest Spring Security distribution and unzip the file. After unzipping Spring Security, you'll need to unzip the spring-security-sample-tutorial-3.0.x.war file that you'll find in there, because we need some files that are included within it. After unzipping the war file, you will see a folder called spring-security-samples-tutorial-3.0.x (where "x" is the minor version number).

You can download it here.

Also have a look at the pet clinic security tutorial.

A quick security setup for technology exploration purposes should take around 30 minutes.

查看更多
登录 后发表回答