omab/django-social-auth — Issue #262: Social Auth wsgi error: OpenID authentication failed: return_to does not match return URL. 
Author: paritosh90
Created: 2012-02-21 16:28:31+00:00
State: open

Hi all,
There is an error while running social auth on wsgi based server
OpenID authentication failed: return_to does not match return URL. Expected 'http://complete/google/?janrain_nonce=2012-02-21T07%3A34%3A43Z7YPbvg&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2012-02-21T07%3A34%3A45ZRRUcwNRhr0lagA&openid.return_to=http%3A%2F%2Fexample.abc.in%2Fcomplete%2Fgoogle%2F%3Fjanrain_nonce%3D2012-02-21T07%253A34%253A43Z7YPbvg&openid.assoc_handle=AMlYA9WUfaD-iijrGZb_D3EupBJ22mgGAAeRDte9ju9WJXwm9Y8V3h4g&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle%2Cns.ext1%2Cext1.mode%2Cext1.type.first_name%2Cext1.value.first_name%2Cext1.type.old_email%2Cext1.value.old_email%2Cext1.type.email%2Cext1.value.email%2Cext1.type.last_name%2Cext1.value.last_name&openid.sig=LBPO6BxhlvdsJFPUqYol46jxmow%3D&openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawmhdR7EcG1qexEK5TJ7Ho1ucx0bTuxXAsw&openid.claimed_id=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawmhdR7EcG1qexEK5TJ7Ho1ucx0bTuxXAsw&openid.ns.ext1=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ext1.mode=fetch_response&openid.ext1.type.first_name=http%3A%2F%2Faxschema.org%2FnamePerson%2Ffirst&openid.ext1.value.first_name=paritosh&openid.ext1.type.old_email=http%3A%2F%2Fschema.openid.net%2Fcontact%2Femail&openid.ext1.value.old_email=paritosh.singh%40joshworkz.com&openid.ext1.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.value.email=paritosh.singh%40joshworkz.com&openid.ext1.type.last_name=http%3A%2F%2Faxschema.org%2FnamePerson%2Flast&openid.ext1.value.last_name=singh', got u'http://example.abc.in/complete/google/?janrain_nonce=2012-02-21T07%3A34%3A43Z7YPbvg'

This api is working fine on my local python server, the problem is only at staging server. I tried a lot to find the solution, but can't get proper solution. It would be great, if you help me in the problem given above or let me know what is the problem.

Thanks