I’m using django-socialregistration on Apache. I started getting this error message.
Invalid OpenID Namespace u'http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It starts with a rewrite rule in my Apache configuration file.
So any request that comes in to foobar.net or doesn’t come over https gets redirected to https://foobar.org. When Apache does this redirect, by default, it escapes the url. See http://httpd.apache.org/docs/current/rewrite/flags.html#flag_ne
So one solution is to just do this:
But why is the redirect happening in the first place? In my case, it’s because django-socialregistration checks a setting to determine whether or not to use ssl in the OpenID workflow. I watched my runserver and saw something like
I
curl -v <that_url>, and saw that the Location header (that is, the redirect url) contained something like this:Notice that it isn’t using https. I dug through django-socialregistration and saw that I need this in settings.py: