Skip to content

Commit

Permalink
Merge pull request #21 from La0/fix-20
Browse files Browse the repository at this point in the history
Update Garmin auth SSO parameters
  • Loading branch information
Bastien Abadie authored Jan 6, 2021
2 parents f8c48a8 + ec012a0 commit b4ce231
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions garmin_uploader/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4ce231

Please sign in to comment.