Comments (3)
If serverURL in Config.groovy not ends with "/",
path.substring(1) will produce the wrong redirect url.
64 String getAbsoluteRedirectUrl() {
65 String path = getFilterProcessesUrl()
66 if (path.startsWith('/')) {
67 path = path.substring(1)
68 }
69 linkGenerator.link(uri: path, absolute: true)
70 }
from grails-spring-security-facebook.
String getAbsoluteRedirectUrl() {
String path = getFilterProcessesUrl()
if (linkGenerator.serverBaseURL.endsWith('/') && path.startsWith('/')) {
path = path.substring(1)
}
linkGenerator.link(uri: path, absolute: true)
}
from grails-spring-security-facebook.
Thank you!
There are 3 parts: server url, context name and path. I'll take a look how to fix and how it can always have valid url.
from grails-spring-security-facebook.
Related Issues (20)
- Cutomize facebook button HOT 1
- Grails 2.4.2 and Spring Security Facebook 0.16 HOT 4
- Conditional redirect by facebookAuth:connect taglib
- NullPointerException when updating auth token HOT 3
- FacebookAuthProvider Can't fetch access_token for code HOT 2
- MissingPropertyException when customize UserDetail
- Pass remember_me switch with Server Side login processing
- How works FacebookUser's accessTokenExpires field?
- FacebookAccessToken should fix it's serialVersionUID HOT 2
- Use facebook cookies for authentication
- Invalid cookie
- Fake login behavior triggered by IOException HOT 1
- Grails 3 Support HOT 5
- How do we add a custom registration page before the user is created in the database? HOT 3
- failureUrl setting
- LinkGenerator package changed HOT 5
- Breaking issue in login! Invalid response part error. No access_token in response HOT 8
- Proble with org.grails.plugins:spring-security-facebook:0.17 HOT 7
- Proble with org.grails.plugins:spring-security-facebook:0.14.5 HOT 2
- LazyInitializationException when login again
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-spring-security-facebook.