1

I'm new to Spring security, so I don't know how to get it setup and configured in my web application. Does anyone know of a good reference that explains the basics of Spring security and describes common usage scenarios? Ideally I'd like to find a tutorial that describes:

  • setup and configuration for authentication and authorization
  • using Hibernate to fetch authorities
  • required dependencies
Mike Partridge
  • 5,128
  • 8
  • 35
  • 47
Balasaheb
  • 625
  • 2
  • 12
  • 33

5 Answers5

2

Read:

http://static.springsource.org/spring-security/site/docs/3.1.x/reference/ns-config.html

Sections 2.1 to 2.2.4 should have everything you need to get started.

Allan
  • 2,889
  • 2
  • 27
  • 38
0

Read:

Basics of Spring Security

I have tried to explain the details to the very basics.

Dharman
  • 30,962
  • 25
  • 85
  • 135
KnockingHeads
  • 1,569
  • 1
  • 22
  • 42
0

The documentation mentioned above is pretty decent, but I've also found a tough time getting decent examples online.

In the end, me and a colleague of mine ended up getting this book: Spring Security 3, and we're glad we did. He has some good walk-throughs--the kind that seem to be lacking online.

Other than that, I think the best place to look is at code samples. Here's a link for the security samples on springsource.org. The 'contacts' sample is a decent place to start.

ataddeini
  • 4,931
  • 26
  • 34
  • 2
    Thanks for the plug for my book :) I am disappointed that I didn't have the ability to cover a JPA/Hibernate based custom Spring Security implementation in the book, so unfortunately this aspect of the poster's question wouldn't be covered. – Peter Mularien Jul 26 '11 at 16:15
0

A colleague of mine suggested 5 min spring security blog link by the author of the Spring security book

Atul
  • 2,673
  • 2
  • 28
  • 34
0

In addition to the other great suggestions by posters, one online tutorial that I have seen that people like is the one at Heraclitus on Software - he/she has a 16 part tutorial complete with screen shots etc. Unfortunately it covers only Spring Sec 2.0, but many of the customization concepts will be similar in Spring Sec 3.0.

krams915 (a member of the Spring Security forums) also has a series of tutorials that he/she publishes on a regular basis, including some Spring Security 3 ones.

FWIW this question seems very similar to another SO question; there are many other links off of that question.

Community
  • 1
  • 1
Peter Mularien
  • 2,578
  • 1
  • 25
  • 34