Ask Your Question
2

How can I configure the Google+ login?

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

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/views.py 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
1

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

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

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

http://stackoverflow.com/questions/29...

Greets...

edit flag offensive delete link more

Comments

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 settings.py should be included in ASKBOT's code repository?

Nigini Abilio gravatar imageNigini Abilio ( 2016-08-31 22:23:05 -0600 )edit

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

gopalraha gravatar imagegopalraha ( 2016-09-01 04:19:53 -0600 )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: http://example.com/account/signin/complete-oauth2/, not http://example.com/questions as it is for other services.

nyceyes gravatar imagenyceyes ( 2017-10-08 03:05:54 -0600 )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

Stats

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

Seen: 2,165 times

Last updated: Aug 26 '16