Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SumanMaharana committed Nov 22, 2024
1 parent 2f75c80 commit 6c12854
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
logger = ingestion_logger()

API_VERSION = "MicroStrategyLibrary/api"
LOGIN_MODE_GUEST = 8


class MSTRClient:
Expand Down Expand Up @@ -79,7 +80,7 @@ def _get_auth_header_and_cookies(self) -> Optional[AuthHeaderCookie]:
data = {
"username": self.config.username,
"password": self.config.password.get_secret_value(),
"loginMode": 8,
"loginMode": LOGIN_MODE_GUEST,
"applicationType": 35,
}
response = requests.post(
Expand Down Expand Up @@ -108,7 +109,7 @@ def _set_api_session(self) -> bool:
)
return True
raise requests.ConnectionError(
"Connection Failed, Unable to set a session, Please validate credentials"
"Connection Failed, Failed to set an api session, Please validate the credentials"
)

def close_api_session(self) -> None:
Expand Down

0 comments on commit 6c12854

Please sign in to comment.