Ask Your Question
2

openid for Google doesn't fetch email

asked 2012-06-29 03:20:00 -0500

Jtrain gravatar image Jtrain flag of Germany
283 4 4 16

updated 2012-06-29 04:19:33 -0500

I've been trying to get the email address requested from Google's openid.

However the implementation of django_authopenid included with Askbot uses the SREG system for requesting extensions like email and nickname.

I hacked together a solution based on this person's blog http://arnab.org/blog/getting-django-auth-openid-work-google-accounts (the blog excludes the code you need to actually use the email and nickname)

But, my hacked version isn't good enough for Askbot. The official django_authopenid now requests the email and nickname correctly, so using the latest official django_authopenid would be a solution.

delete close flag offensive retag edit

Comments

Hello @Jtrain. I had same considerations in the past about fetching email from Google. Can you clarify me something? What do you mean by saying "upgrading to that"?

alexandros.z ( 2012-06-29 03:54:09 -0500 )edit

My question wasn't clear about what "that" was, so I've edited it

Jtrain ( 2012-06-29 04:19:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-06-29 04:07:32 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

It would be ideal to delegate authentication to specialized modules like updated "django-authopenid" etc. and to simplify the askbot's authentication module.

So we could start with taking out openid logic from askbot and replace it with django-authopenid, while keeping our current UI and logic supporting association of the same user account with multiple login methods.

We have requirements to support traditiional login/password, openid, oauth, LDAP. In the near future we want to support various single sign on systems... So the list of requirements will grow.

In addition to that - we want the login method configurations and enabled/disabled states to be controllable from the web-interface which should be more or less in the same format as askbot's settings.

Not sure if there is a third party solution satisfying all of our requirements. So we may end up with an "aggregator" module talking to more specialized modules, and keep building our own UI. It might be worthwhile separating the login system into a dedicated application too.

In general it's a good time to focus on simplifying Askbot's code base by delegating more functions to well tested third party modules or by other means.

link publish delete flag offensive edit

Comments

Sounds good. Authentication is difficult enough even when there is one system. Multiply that problem by X login systems.

I haven't seen any third party solutions that would bundle these methods up.

Jtrain ( 2012-06-29 04:22:08 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

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 site
30 days free trial

Question tools

Follow
2 followers

subscribe to rss feed

Stats

Asked: 2012-06-29 03:20:00 -0500

Seen: 66 times

Last updated: Jun 29 '12