Skip to content

Commit

Permalink
Fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Dec 7, 2024
1 parent 7eb0cd2 commit ed41dab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/fides/api/models/connectionconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,13 @@ def authorized(self) -> bool:
return False

# hard-coding to avoid cyclic dependency
if authentication.strategy not in ["oauth2_authorization_code", "oauth2_client_credentials"]:
if authentication.strategy not in [
"oauth2_authorization_code",
"oauth2_client_credentials",
]:
return False

return bool(self.secrets and 'access_token' in self.secrets.keys())
return bool(self.secrets and "access_token" in self.secrets.keys())

@property
def name_or_key(self) -> str:
Expand Down

0 comments on commit ed41dab

Please sign in to comment.