Merge changes from topic "modernize_lftools"
[releng/lftools.git] / lftools / oauth2_helper.py
index ef73ecd..858eca9 100644 (file)
@@ -22,11 +22,11 @@ from lftools import config
 def oauth_helper() -> Tuple[str, str]:
     """Helper script to get access_token for lfid api."""
     logging.getLogger("oauth2client").setLevel(logging.ERROR)
-    client_id: str = config.get_setting("lfid", "clientid")
-    client_secret: str = config.get_setting("lfid", "client_secret")
-    refresh_token: str = config.get_setting("lfid", "refresh_token")
-    token_uri: str = config.get_setting("lfid", "token_uri")
-    url: str = config.get_setting("lfid", "url")
+    client_id: str = str(config.get_setting("lfid", "clientid"))
+    client_secret: str = str(config.get_setting("lfid", "client_secret"))
+    refresh_token: str = str(config.get_setting("lfid", "refresh_token"))
+    token_uri: str = str(config.get_setting("lfid", "token_uri"))
+    url: str = str(config.get_setting("lfid", "url"))
 
     credentials: client.Oauth2Credentials = client.OAuth2Credentials(
         access_token=None,  # set access_token to None since we use a refresh token