Ask Your Question

How can I configure the Google+ login?

asked 2016-08-25 18:18:42 -0500

Hey there,

I saw that that recently a commit fixed the Google+ login system. So I tried it but I'm having a problem. Here is what I've tried to do:

  1. Created the credential for Google+ API and inserted both public and secret API keys at the "settings/EXTERNAL_KEYS/" URL. (Q: Why are there 2 boxes for each of those?)
  2. Then I tried to setup the "Google Plus Login" box at "settings/LOGIN_PROVIDERS/"
  3. Strangely the box for that service was already marked (together with a couple of others). Then I went to confirm at the database, and everything was set to FALSE. I set the one for G+ to TRUE and then the button appeared!
  4. I tried to login with it and initially I got a configuration error, because I didn't know what URL to insert at the "Authorization redirect URI" at the Google+ API configuration. I used "<my_server_domain>/account/signin/complete-oauth2/" and it went through.
  5. But now I have the following error and I don't know what to do...

Request Method: GET
Django Version: 1.8.13
Exception Type: KeyError
Exception Value:    u'google-plus'
Exception Location: /var/lib/.../askbot/deps/django_authopenid/ in complete_oauth2_signin, line 256
Python Version: 2.7.8

Can anyone help? Is this something related to "django_authopenid" library version? I don't know how to check that as it is part of the settings of the django project.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-26 23:30:59 -0500

gopalraha's avatar

updated 2016-08-26 23:32:21 -0500

If you have two step authentication in account please disable that then follow the given instructions..


edit flag offensive delete link more


That's an awesome resource @gopalraha thanks! But this somewhat goes beyond "configuration" steps and touch "developing" level, do you agree? Have you executed that for ASKBOT? If so, do you think these dependencies and changes to should be included in ASKBOT's code repository?

Nigini A. Oliveira's avatar Nigini A. Oliveira  ( 2016-08-31 22:23:05 -0500 )edit

Yes I agree with you but I will tell you that AskBot is still in development stage please wait for stable release..

gopalraha's avatar gopalraha  ( 2016-09-01 04:19:53 -0500 )edit

Note also that when you perform the steps in the StackOverflow post above, that the callback URL for Google/Google+ when configuring keys must be:, not as it is for other services.

nyceyes's avatar nyceyes  ( 2017-10-08 03:05:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-08-25 18:18:42 -0500

Seen: 3,735 times

Last updated: Aug 26 '16