Skip to content

Commit

Permalink
#258 Add client_secrets.json priority over qsettings for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSAMPERE committed Apr 3, 2024
1 parent 3108351 commit 5ab5910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def manage_api_initialization(self):
self.credentials_location["oAuth2_file"] = self.credentials_check_file()

# update class attributes from credentials found
if self.credentials_location.get("QSettings"):
self.credentials_update("QSettings")
elif self.credentials_location.get("oAuth2_file"):
if self.credentials_location.get("oAuth2_file"):
self.credentials_update("oAuth2_file")
elif self.credentials_location.get("QSettings"):
self.credentials_update("QSettings")
else:
logger.info("No credentials found. ")
self.first_auth = True
Expand Down

0 comments on commit 5ab5910

Please sign in to comment.