This repository was archived by the owner on Apr 30, 2026. It is now read-only.
Commit 39d6d3d
Harden connect(): never fall through to Garmin SSO login
connect() previously fell through to Garmin().login() when cached
tokens failed AND email/password were set in config. This meant the
4h garmin-pull cron could hammer Garmin SSO repeatedly on token expiry.
Now connect() always raises RuntimeError on cache failure. SSO login
only happens through explicit auth paths (auth_interactive, auth_garmin
MCP tool). Removed dead code for SSO fallback.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a5547c7 commit 39d6d3d
2 files changed
Lines changed: 43 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
172 | 164 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
182 | 168 | | |
183 | 169 | | |
184 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
604 | 641 | | |
605 | 642 | | |
606 | 643 | | |
| |||
0 commit comments