(Quick Reference)

2 Installation - Reference Documentation

Authors: Pavel Burov

Version: 1.0

2 Installation

Add dependency into BuildConfig.groovy:

plugins {
        compile "org.grails.plugins:spring-security-vkontakte:1.0"
        // …
        // you need to have spring-security-core plugin installed
        // …

Call (optionaly) configuration wizards by:

grails s2-quickstart //configure Spring Security Core
grails s2-init-vkontakte //configure Spring Security Vkontakte

Or you can edit Config.groovy instead and put your Vkontakte App appId/secret and domain class configuration into Config.groovy:

grails.plugin.springsecurity.vkontakte.appId = ..
grails.plugin.springsecurity.vkontakte.secret = ..
grails.plugin.springsecurity.vkontakte.domain.className = 'com.company.VkontakteUser'

It's very basic configuration, for other options (see Configuration section)

Follow Basic Usage guide for full example.