Hi Tito,
When you call the server from browser do you put the hostname?
I guess there is a problem with wsgi implementation on fluxflex.
The oauth20_account.py module contains the following method:
def __redirect_uri(self, next=None):
"""Build the uri used by the authenticating server to redirect
the client back to the page originating the auth request.
Appends the _next action to the generated url so the flows continues.
"""
r = self.request
http_host=r.env.http_x_forwarded_for
if not http_host: http_host=r.env.http_host
url_scheme = r.env.wsgi_url_scheme
if next:
path_info = next
else:
path_info = r.env.path_info
uri = '%s://%s%s' %(url_scheme, http_host, path_info)
if r.get_vars and not next:
uri += '?' + urlencode(r.get_vars)
return uri
Override it in your OAuthAccount subclass putting http_host as a fixed
value instead of taking it from request.env
HTH
mic
2011/11/12 Tito Garrido <[email protected]>:
> Hi Folks!
>
> Are you able to login using Oauth2.0 on fluxflex?
>
> I'm trying to but seems that OAuthAccount grabs the ip of my instance and
> the facebook never recognizes my redirect URL.
>
> Anybody with this problem?
>
> Regards,
>
> Tito
>
> --
>
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
>