diff --git a/garminexport/garminclient.py b/garminexport/garminclient.py index e1801e7..ac8ea87 100755 --- a/garminexport/garminclient.py +++ b/garminexport/garminclient.py @@ -104,7 +104,8 @@ class GarminClient(object): params = { "service": "http://connect.garmin.com/post-auth/login", "clientId": "GarminConnect", - "consumeServiceTicket": "false" + "consumeServiceTicket": "false", + "gauthHost": "https://sso.garmin.com/sso" } flow_execution_key = self._get_flow_execution_key(params) log.debug("flow execution key: '{}'".format(flow_execution_key)) @@ -131,12 +132,12 @@ class GarminClient(object): "auth failure: %s: code %d: %s" % (SSO_LOGIN_URL, response.status_code, response.text)) # extract flowExecutionKey - match = re.search(r'name="lt"\s+value="([^"]+)"', response.text) + match = re.search(r'