10REM / php-garmin-connect

A PHP adapter for interrogating the Garmin Connect "API"
MIT License
84 stars 41 forks source link

Authentication issue #12

Closed marjasin123 closed 7 years ago

marjasin123 commented 7 years ago

I have been using this wonderful script for a while now but now suddenly I get an error: "Oops: "lt" value wasn't found in response"

Did garmin change the authentication somehow and could you provide a fix?

mgnwong commented 7 years ago

The Garmin Development Team must've changed the authentication. I'll provide you with the fix as soon as I find it.

DaveWilcock commented 7 years ago

Looks like Garmin have changed something, yep. Unsure what yet, but as the authentication code was looking for specific items in the page (a sort of screen scrape if you like), the authentication method was always prone to this sort of failure.

Miguel, I'll take a look too, but if you beat me to it, that's also good ;)

FYI, this method was lifted from Tapiriik, so it might be worth taking a look at their github to see if they've found a solution yet.

On 14 Dec 2016 6:00 p.m., "Miguel Angel Wong" notifications@github.com wrote:

The Garmin Development Team must've changed the authentication. I'll provide you with the fix as soon as I find it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dawguk/php-garmin-connect/issues/12#issuecomment-267106598, or mute the thread https://github.com/notifications/unsubscribe-auth/AAZ4niH9kyfzjDiC9i9ThJuRRJtbMAORks5rIC65gaJpZM4LMPmD .

marjasin123 commented 7 years ago

tapiriik source was not changed for 2 months and their garmin service on https://tapiriik.com does not work at the moment

mgnwong commented 7 years ago

This parameter needs to be added to the authentication function "gauthHost": "https://sso.garmin.com/sso"

Seen here: https://github.com/cpfair/tapiriik/commit/89c5302722d0be422382aa86d6047c0b6ceabdfa#diff-5f6881242af72e33fc34c0b328ef948c