Azure oauth: remove preferredName from query

This commit is contained in:
Erik Weber 2020-04-30 12:14:32 +02:00
parent bd1eb3cce9
commit b8442c4c5c
No known key found for this signature in database
GPG Key ID: 05843120A7BB49E4

View File

@ -201,7 +201,7 @@ def login():
return redirect(url_for('index.index'))
if 'azure_token' in session:
azure_info = azure.get('me?$select=displayName,givenName,id,mail,surname,userPrincipalName,preferredName').text
azure_info = azure.get('me?$select=displayName,givenName,id,mail,surname,userPrincipalName').text
current_app.logger.info('Azure login returned: '+azure_info)
me = json.loads(azure_info)