Posts Tagged ‘Java’

Exploring Spring Secuirty Series: part 13 to part 16

December 29, 2008

In spring security series parts 13 to 16, we revert back a bit to take a closer look at how spring security filters work. We clean up our configuration to allow us to have uri level security and method level security in place by part 16.

In subsequent parts of the series, we will continue on to look at the ACL feature of spring security.

part 13
part 14
part 15
part 16

Advertisements

Exploring Spring Secuirty Series: part 11 & 12

December 22, 2008

In part 11 , we start looking at spring security’s ACL features. We create the schema and populate the database with test data as well as the ACL tables.

In part 12 , we add code that enables us to see the data entered into our Projects (domain) table and also the corresponding entries in our ACL tables.

seeĀ https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-11

see https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-12/

Exploring Spring Secuirty Series: part 10

November 26, 2008

In part 10, we change from using the configuration to declare users to create a database backend using (hsqldb) and we add the users and authorities to the schema to allow basic authentication.

We add an initializing bean that is responsible for creating the and populating the schema of the in-memory database on startup.

seeĀ https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-10

Exploring Spring Security Series: part 9

November 23, 2008

In part 9, we use exceptions mappings to control what is displayed when certain exceptions occur within the application.

see https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-9/

Exploring Spring Security Series: part 8

November 22, 2008

In this part we use spring security’s taglibs. We are going to use them to customize the content being displayed based on the user role of the authenticated user.

See part 8 of the series: https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-8/

Exploring Spring Security Series: part 7

November 21, 2008

In this part, we create our own TargetUrlResolver so we can direct authenticated users to specific pages based on their role. We create a class called RoleBasedTargetUrlResolver that implements TargetUrlResolver and delegates to spring securitys TargetUrlResolverImpl if it does find a user with an admin role.

See part 7 of series: https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-7/

Exploring Spring Security Series: part 6

November 20, 2008

In this part, we are required to add behaviour to our application that requires us to use a custom authtication process filter rather than the out of the box one created when you use http auto-config=true.

see https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-6/

Exploring Spring Security Series: part 4 & 5

November 19, 2008

Part 4 and 5 of the series continues with adding behavior specified in here

see Part 4
see Part 5

Over the next few parts (6 – 10) of the series we will implement functionality that doesn’t come out-of-the-box with spring security and will require customizing spring security elements.

If there is anything in particular anyone would like to see examined please leave a comment.

Exploring Spring Security Series: part 3 available

November 18, 2008

Part 3 of a series exploring spring security through the development of a simple web application is available.

see https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-3/

This part continues to show how we can add security related behavior to our web application using spring security.

Exploring Spring Security Series: part 1 available

November 18, 2008

I have written part 1 of the series that explores spring security by developing a simple web application.

see https://heraclitusonsoftware.wordpress.com/software-development/spring/simple-web-application-with-spring-security-part-1/

The first parts looks at setting up infrastructure to allow development of the web application using:

Servlets 2.5, JSP 2.1, HTML, CSS, Javascript
Ant 1.7.1 http://ant.apache.org/
Java 1.5 http://java.sun.com/javase/downloads/index.jsp
Spring 2.5.6 http://springframework.org/download
Spring Security 2.0.4 http://springframework.org/download
Tomcat 6.0.18 http://tomcat.apache.org/
Eclipse http://www.eclipse.org/downloads/
JUnit 4.5 http://www.junit.org/
JMock 2.5.1 http://www.jmock.org/
WebDriver http://code.google.com/p/webdriver/