Fix foreign table api test failures for EPAS.

This commit is contained in:
Yogesh Mahajan
2023-10-27 12:58:47 +05:30
committed by GitHub
parent f1da4f5de8
commit 1bfd8d7f3c
3 changed files with 53 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ class OAuth2Authentication(BaseAuthentication):
def login(self, form):
profile = self.get_user_profile()
current_app.logger.warning(profile)
email_key = \
[value for value in self.email_keys if value in profile.keys()]
email = profile[email_key[0]] if (len(email_key) > 0) else None