Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (18 sloc) 1.119 kB

Spring Security Configuration with Scala

Code to accompany this blog article.

Provides a scala-based alternative to the usual Spring Security namespace with similar syntax, but which is compatible with Spring's @Configuration features. It is no more complicated than namespace syntax, but is more powerful and intuitive as it directly exposes the actual classes which are usually hidden. By using higher-order functions, it makes it easy to plug in new behaviour for features such as access-control (interceptUrl), which can be implemented as Scala functions.

Building

The code is built and run using sbt

  1. Download and install version 0.12.3
  2. cd scalasec
  3. sbt

Running the Sample app

Then from the sbt prompt, build and run using

  1. update
  2. compile
  3. container:start

Browse to http://localhost:8080/anyurl/

Log in in with any username and password=username.

Jump to Line
Something went wrong with that request. Please try again.