Revision history  [back]

Login with identi.ca broken (with fix)

Login with identi.ca doesn't work now. I realized that this site doesn't have the feature, either.

In the code: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py#L412

 def get_identica_user_id(data):
     consumer = oauth.Consumer(data['consumer_key'], data['consumer_secret'])
     token = oauth.Token(data['oauth_token'], data['oauth_token_secret'])
     client = oauth.Client(consumer, token=token)
     url = 'https://identi.ca/api/account/verify_credentials.json'
     content = urllib2.urlopen(url).read()
     json = simplejson.loads(content)
     return json['id']

Line 417, the assignment to content, is wrong. We need to authenticate here.

It should be:

   response, content = client.request(url, 'GET')

With this change, login with identi.ca (askbot 0.7.43) works for me.

Login login with identi.ca broken (with fix)identi.ca

Login with identi.ca doesn't work now. I realized that this site doesn't have the feature, either.

In the code: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py#L412

 def get_identica_user_id(data):
     consumer = oauth.Consumer(data['consumer_key'], data['consumer_secret'])
     token = oauth.Token(data['oauth_token'], data['oauth_token_secret'])
     client = oauth.Client(consumer, token=token)
     url = 'https://identi.ca/api/account/verify_credentials.json'
     content = urllib2.urlopen(url).read()
     json = simplejson.loads(content)
     return json['id']

Line 417, the assignment to content, is wrong. We need to authenticate here.

It should be:

   response, content = client.request(url, 'GET')

With this change, login with identi.ca (askbot 0.7.43) works for me.

Sorry, this is just a bug report, not a question. Could you please fix this and possibly enable identi.ca login for this site? Well, it becomes a question now. :-)

login with identi.ca

Login with identi.ca doesn't work now. I realized that this site doesn't have the feature, either.

In the code: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py#L412

 def get_identica_user_id(data):
     consumer = oauth.Consumer(data['consumer_key'], data['consumer_secret'])
     token = oauth.Token(data['oauth_token'], data['oauth_token_secret'])
     client = oauth.Client(consumer, token=token)
     url = 'https://identi.ca/api/account/verify_credentials.json'
     content = urllib2.urlopen(url).read()
     json = simplejson.loads(content)
     return json['id']

Line 417, the assignment to content, is wrong. We need to authenticate here.

It should be:

   response, content = client.request(url, 'GET')

With this change, login with identi.ca (askbot 0.7.43) works for me.

Sorry, this is just a bug report, not a question. Could you please fix this and possibly enable identi.ca login for this site? Well, it becomes a question now. :-)