Thigazhezhilan J 4922ea69e8 Fix auto-login OAuth context not being established
Root cause: X-Kite-Version header on web login endpoints caused Zerodha
to return plain profile response instead of OAuth redirect_url.

Changes:
- Remove X-Kite-Version from session headers (only valid for Kite Connect API)
- Use allow_redirects=False on connect/login GET to preserve OAuth cookie
- Add Referer header to login/twofa POSTs
- Check data.redirect_url in twofa JSON body (modern Zerodha SPA behavior)
- Keep Location header fallback for legacy behavior

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 21:42:25 +05:30
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
s
2026-05-11 19:20:57 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-02-01 13:57:30 +00:00
2026-05-02 21:38:30 +00:00
Description
No description provided
2.7 MiB
Languages
Python 97.6%
PowerShell 1.3%
JavaScript 0.7%
Shell 0.3%