diff --git a/helios_auth/auth_systems/google.py b/helios_auth/auth_systems/google.py index b6eb57c4390ab54bd747bc03971bc42ba5fbca1f..7caa32fc2f03e810f2f675b587d37ea01d41cf40 100644 --- a/helios_auth/auth_systems/google.py +++ b/helios_auth/auth_systems/google.py @@ -50,11 +50,11 @@ def get_user_info_after_auth(request): # get the nice name http = httplib2.Http(".cache") http = credentials.authorize(http) - (resp_headers, content) = http.request("https://www.googleapis.com/plus/v1/people/me", "GET") + (resp_headers, content) = http.request("https://people.googleapis.com/v1/people/me?personFields=names", "GET") response = json.loads(content) - name = response['displayName'] + name = response['names'][0]['displayName'] # watch out, response also contains email addresses, but not sure whether thsoe are verified or not # so for email address we will only look at the id_token