Skip to content

fix(igpsport): use mobile auth API for international login#45

Merged
jorge-huxley merged 1 commit into
masterfrom
cursor/igpsport-modern-auth
Jul 7, 2026
Merged

fix(igpsport): use mobile auth API for international login#45
jorge-huxley merged 1 commit into
masterfrom
cursor/igpsport-modern-auth

Conversation

@jorge-huxley

@jorge-huxley jorge-huxley commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Switch international iGPSPORT login from the legacy i.igpsport.com/Auth/Login cookie flow to the mobile bearer-token API at prod.en.igpsport.com
  • List international activities via queryMyActivity, matching the China flow and supporting new passport accounts
  • Fix rideId=0 being dropped when parsing activity rows

Context

New accounts created via login.passport.igpsport.com return HTTP 403 on the legacy login endpoint even with valid credentials. The modern auth API works for both new and existing international accounts.

Test plan

  • uv run pytest tests/test_igpsport_core.py
  • uv run intervalssync sync --env-file .env with a new passport account (+ email, special chars in password)
  • Verify sync still works with an older international account
  • Confirm Karol can log in with the same credentials that work on i.igpsport.com

New passport accounts fail on the legacy cookie endpoint. Unify international and China on bearer-token auth and queryMyActivity.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jorge-huxley
jorge-huxley merged commit 676a247 into master Jul 7, 2026
1 check passed
@jorge-huxley
jorge-huxley deleted the cursor/igpsport-modern-auth branch July 7, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant