diff --git a/garmin_uploader/api.py b/garmin_uploader/api.py index 614e818..4739bb3 100644 --- a/garmin_uploader/api.py +++ b/garmin_uploader/api.py @@ -62,29 +62,36 @@ def authenticate(self, username, password): 'connectLegalTerms': 'true', 'consumeServiceTicket': 'false', 'createAccountShown': 'true', - 'cssUrl': 'https://static.garmincdn.com/com.garmin.connect/ui/css/gauth-custom-v1.2-min.css', # noqa + 'cssUrl': 'https://connect.garmin.com/gauth-custom-v1.2-min.css', 'displayNameShown': 'false', 'embedWidget': 'false', 'gauthHost': 'https://sso.garmin.com/sso', 'generateExtraServiceTicket': 'true', 'generateNoServiceTicket': 'false', - 'generateTwoExtraServiceTickets': 'false', + 'generateTwoExtraServiceTickets': 'true', 'globalOptInChecked': 'false', 'globalOptInShown': 'true', 'id': 'gauth-widget', 'initialFocus': 'true', - 'locale': 'fr', + 'locale': 'fr_FR', 'locationPromptShown': 'true', + 'mfaRequired': 'false', 'mobile': 'false', 'openCreateAccount': 'false', - 'privacyStatementUrl': 'https://www.garmin.com/fr/privacy/connect/', # noqa - 'redirectAfterAccountCreationUrl': 'https://connect.garmin.com/modern/', # noqa - 'redirectAfterAccountLoginUrl': 'https://connect.garmin.com/modern/', # noqa + 'privacyStatementUrl': 'https://www.garmin.com/fr-FR/privacy/connect/', + 'redirectAfterAccountCreationUrl': 'https://connect.garmin.com/modern/', + 'redirectAfterAccountLoginUrl': 'https://connect.garmin.com/modern/', 'rememberMeChecked': 'false', 'rememberMeShown': 'true', + 'rememberMyBrowserChecked': 'false', + 'rememberMyBrowserShown': 'false', 'service': 'https://connect.garmin.com/modern/', + 'showConnectLegalAge': 'false', 'showPassword': 'true', + 'showPrivacyPolicy': 'false', + 'showTermsOfUse': 'false', 'source': 'https://connect.garmin.com/signin/', + 'useCustomHeader': 'false', 'webhost': sso_hostname, } res = session.get(URL_LOGIN, params=params)