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.
Thanks, I've applied your change (in the git repo), but did not test it. Could you try?
It might be easier to make a fix on github and make a pull request.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-10-16 18:49:17 -0500
Seen: 74 times
Last updated: Oct 19 '12
What is the correct use of template substitution within translate section?
Accepting a previously unaccepted answer should not grant additional karma to author
"502 Bad Gateway" when visiting certain URLs, Part 2
Tags that are too long to display use truncated version when retagging question.
Viewing deleted question from an anonymoususer internal error
Editing a question title does not change SEO URL if I only append text to the title
Incorrect reputation check when attempting to reopen a closed question?
Wonkiness when attempting to post a comment on a closed question
Pressing return key when editing a question text field reloads the page.
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.