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
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'