add all qc_keys for response dict

This commit is contained in:
lpm0073 2022-10-05 20:08:54 -05:00
parent 8c4622a825
commit 631f2ce93c

View File

@ -174,7 +174,7 @@ class StepwiseMathWPOAuth2(BaseOAuth2):
# otherwise we pobably received the default response from the oauth provider based on
# the scopes 'basic' 'email' 'profile'. We'll check a few of the most important keys to see
# if they exist.
qc_keys = ['ID', 'user_email', 'user_login']
qc_keys = ['ID' 'display_name', 'user_email', 'user_login', 'user_roles']
if not all(key in response for key in qc_keys):
logger.warning('get_user_details() - response object is missing one or more required keys: {response}'.format(
response=json.dumps(response, sort_keys=True, indent=4)