splix / grails-spring-security-twitter

Twitter Authentication plugin for Grails
Other
11 stars 12 forks source link

Incorrect callback url being generated by default #4

Closed gotomanners closed 12 years ago

gotomanners commented 12 years ago

The callbackUrl is generated in TwitterAuthTaglib.groovy as follows:

String authFilter = conf.filter.processUrl
String callbackUrl = g.resource(file: authFilter, absolute: true)

Assiuming the app name is AuthModule, this callbackUrl then generated is:

/AuthModulealhost:8080/AuthModule/j_spring_twitter_security_check

So after authenticating with Twitter, an attempt is made to redirect back to this url, which never resolves.

splix commented 12 years ago

So, what URL did you get? What do you mean with /AuthModulealhost?

gotomanners commented 12 years ago

I'm not sure how AuthModulealhost is being generated, but its part of the invalid url. Here i've attached a Screenshot of the invalid url.

As for the configuration, everything is the default setting except for consumer key, secret and popup.

splix commented 12 years ago

Hm, thats weird :( What you have for link generated by: <g:createLink controller="ctrl" action="action" absolute="true">test</g:createLink>?

gotomanners commented 12 years ago

<g:createLink controller="ctrl" action="action" absolute="true">test</g:createLink>

resolves to

http://localhost:8080/AuthModule/ctrl/action

gotomanners commented 12 years ago

I was on previously on Resources 1.1.5. Upgrading to Resources 1.1.6 seems to have resolved this issue.

splix commented 12 years ago

Ok, that's good. I also had have an another issue with Resources plugin.