Archive

Archive for the ‘Uncategorized’ Category

Adding spring security to your grails app

December 12th, 2011 No comments

Check out this article over here:

Spring security with the spring-security plugin for grails

Issue the following commands to add spring security to your app.

grails install-plugin spring-security-core
 
grails s2-quickstart your.package.name SecUser SecRole

Add the following two lines to UrlMappings.groovy:

"/login/$action?"(controller: "login")
"/logout/$action?"(controller: "logout")

I personally prefer to use annotations.

@Secured(['ROLE_USER'])
class PostController {
    @Secured(['ROLE_ADMIN'])
    def deletePost = { //...
    }
}
Categories: Uncategorized Tags:

Some useful twitter stuff

October 21st, 2011 No comments

Keep forgetting stuff. Too much input will cause a bufferoverflow I guess. :) So here it is, some useful twitter stuff. If you won’t forget I will keep updating this post to include more and more twitter stuff.

Twitter GET search API
Twitter GET search – Search properties

Categories: Uncategorized Tags: