I'm having the followings setup:
BuildConfig:
plugins {
build ":tomcat:7.0.52.1"
compile ":hibernate:3.6.10.13"
compile ':spring-security-core:2.0-RC2'
compile ':spring-security-oauth:2.0.2'
compile ':spring-security-oauth-facebook:0.1'
}
Config:
grails.plugin.springsecurity.oauth.domainClass = 'com.mobilizr.OAuthID'
oauth{
providers{
facebook {
api = org.scribe.builder.api.FacebookApi
key = '111111'
secret = '333veeerysecret23234234234'
successUri = '/oauth/facebook/success'
failureUri = '/oauth/facebook/error'
callback = "${baseURL}/oauth/facebook/callback"
}
}
}
When I click the link:
<oauth:connect provider="facebook" id="facebook-connect-link">Facebook</oauth:connect>
I get the exception:
java.lang.IllegalArgumentException: Must provide a valid url as callback. Facebook does not support OOB
I have no clue, what should that mean. The page spring security oauth facebook doesn't give give too much details out. Does anyone have an idea, or maybe a working sample of FB-auth?