First time here? Check out the FAQ!
2

How can I configure the Google+ login?

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.

Nigini A. Oliveira's avatar
111
Nigini A. Oliveira
asked 2016-08-25 18:18:42 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

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

Greets...

gopalraha's avatar
332
gopalraha
answered 2016-08-26 23:30:59 -0500, updated 2016-08-26 23:32:21 -0500
edit flag offensive 0 remove flag delete link

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 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: http://example.com/account/signin/complete-oauth2/, not http://example.com/questions as it is for other services.

nyceyes's avatar nyceyes (2017-10-08 03:05:54 -0500) edit
add a comment see more comments