You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
When I use the server-redirect way (oauth2) to authenticate a user and If my server is behind a firewall, FacebookContext.getCurrentURL() will return wrong URL.
And this will lead FacebookContextUser.getToken() error. The error is:
Can't Load URL: The domain of this URL isn't included in the app's domains bla bla bla...
"type": "OAuthException",
"code": 191,
if (code && code != context.session.getData('code')) {
_token = getTokenFromCode(code, context.currentURL)
log.debug "Got token from server side redirect params code (token=$_token)"
if (!_token) {
// Code was bogus, so everything based on it should be invalidated.
invalidate()
}
} else {
// Falling back on persistent store, knowing nothing explicit (signed request, authorization code, etc.) was present to shadow it (or we saw a code in URL/FORM scope, but it's the same as what's in the persistent store)
_token = context.session.getData('token', '')
}
Currently, the workaround way is to change FacebookContext.getCurrentURL in BootStrap like below code:
I use Grails 3.2.8 + Facebook SDk plugins 2.7.3.
When I use the server-redirect way (oauth2) to authenticate a user and If my server is behind a firewall, FacebookContext.getCurrentURL() will return wrong URL.
And this will lead FacebookContextUser.getToken() error. The error is:
Can't Load URL: The domain of this URL isn't included in the app's domains bla bla bla...
"type": "OAuthException",
"code": 191,
Currently, the workaround way is to change FacebookContext.getCurrentURL in BootStrap like below code:
The text was updated successfully, but these errors were encountered: