diff --git a/auth_backends/backends.py b/auth_backends/backends.py index d91fa75b..b0633d72 100644 --- a/auth_backends/backends.py +++ b/auth_backends/backends.py @@ -293,6 +293,6 @@ def auth_complete_params(self, state=None): def user_data(self, access_token, *args, **kwargs): decoded_access_token = jwt.decode(access_token, verify=False) - keys = list(self.CLAIMS_TO_DETAILS_KEY_MAP.keys()) + ['administrator'] + keys = list(self.CLAIMS_TO_DETAILS_KEY_MAP.keys()) + ['administrator', 'superuser'] user_data = {key: decoded_access_token[key] for key in keys if key in decoded_access_token} return user_data