Skip to content

Commit

Permalink
Remove irrelevant async
Browse files Browse the repository at this point in the history
  • Loading branch information
jrdnbradford committed Oct 4, 2024
1 parent 7884369 commit 27f1245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oauthenticator/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def check_allowed(self, username, auth_model):
# users should be explicitly allowed via config, otherwise they aren't
return False

async def _service_client_credentials(self, scopes, user_email_domain):
def _service_client_credentials(self, scopes, user_email_domain):
"""
Return a configured service client credentials for the API.
"""
Expand All @@ -338,11 +338,11 @@ async def _service_client_credentials(self, scopes, user_email_domain):

return credentials

async def _setup_credentials(self, user_email_domain):
def _setup_credentials(self, user_email_domain):
"""
Set up the oauth credentials for Google API.
"""
credentials = await self._service_client_credentials(
credentials = self._service_client_credentials(
scopes=[f"{self.google_api_url}/auth/admin.directory.group.readonly"],
user_email_domain=user_email_domain,
)
Expand Down Expand Up @@ -372,7 +372,7 @@ async def _fetch_member_groups(
Return a set with the google groups a given user/group is a member of, including nested groups if allowed.
"""

credentials = credentials or await self._setup_credentials(user_email_domain)
credentials = credentials or self._setup_credentials(user_email_domain)
checked_groups = checked_groups or set()
processed_groups = processed_groups or set()

Expand Down

0 comments on commit 27f1245

Please sign in to comment.