Google oAuth setup

87 views
Skip to first unread message

rorn...@acorns.com

unread,
Feb 2, 2017, 3:50:23 PM2/2/17
to confidant-users
I setup Confidant using Docker in AWS ECS and believe I am having trouble with oAUTH. When I load the instance of Confidant, it prompts me for oAUTH login. I can login with ANY google account, even though I have the config variables setup to only allow my domain. It allows me into Confidant, but does not show my email at the top right where it says "Logged in as" does not have a name. Examining the logs, I get these 500's 
 [02/Feb/2017:20:41:28 +0000] "GET /v1/user/email HTTP/1.1" 500 291 "https://confidant.dev.acorns.com/" "Mozilla/5.0 


also...

ERROR:confidant.app:Exception on /v1/user/email [GET]
20:41:28
Traceback (most recent call last):
20:41:28
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
20:41:28
response = self.full_dispatch_request()
20:41:28
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
20:41:28
rv = self.handle_user_exception(e)
20:41:28
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
20:41:28
reraise(exc_type, exc_value, tb)
20:41:28
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
20:41:28
rv = self.dispatch_request()
20:41:28
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
20:41:28
return self.view_functions[rule.endpoint](**req.view_args)
20:41:28
File "/srv/confidant/confidant/authnz/__init__.py", line 217, in decorated
20:41:28
user_mod.check_authorization()
20:41:28
File "/srv/confidant/confidant/authnz/userauth.py", line 206, in check_authorization
20:41:28
email = self.current_email()
20:41:28
File "/srv/confidant/confidant/authnz/userauth.py", line 124, in current_email
20:41:28
return self.current_user()['email'].lower()
20:41:28
AttributeError: 'NoneType' object has no attribute 'lower'

Ryan Lane

unread,
Feb 2, 2017, 7:26:13 PM2/2/17
to rorn...@acorns.com, confidant-users
Hey Richard,

I answered through gitter, but I thought I'd follow up here. Usually if you have this issue, it's because you're missing an API in your google project. You need to enable the Google+ API or Confidant can't request the scope to get the user information.

- Ryan

--
You received this message because you are subscribed to the Google Groups "confidant-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confidant-users+unsubscribe@googlegroups.com.
To post to this group, send email to confidant-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confidant-users/d10bb9de-9903-4eb7-a1da-facd1e9a78d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kevin Haggerty

unread,
Feb 13, 2020, 10:05:18 AM2/13/20
to confidant-users
Reply all
Reply to author
Forward
0 new messages