Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat(sources): let a web sign-in accept one of several cookie names

merged
#703 opened by devfeat/web-sign-in-cookie-alternatives→main
Conversation2 Commits0
devopened this pull requestAuthor· 2 weeks ago

Summary

QQ Music's WeChat sign-in sets wxuin instead of uin, so a web sign-in that waits for uin never completes. A source can now list alternatives in cookie_names, and the WeChat login frame can load inside the sign-in window.

Changes

  • authentication.cookie_names entries may be a name or an array of alternative names, for example [["uin","wxuin"],"qm_keyst"]. Sign-in completes when every entry has at least one of its names. Names are validated the same way as before.
  • Contract: streaming-source-protocol.md documents alternatives, says hosts before 0.21.0 accept only names (packages using alternatives must set minimum_host_version to 0.21.0 or later), and that navigation_origins also cover embedded frames such as open.weixin.qq.com.

Test plan

  • cargo test --release --lib: new cookie_names_accept_names_and_groups_of_alternatives and web_sign_in_waits_for_one_name_from_every_entry
  • cargo clippy: clean
  • Release app: signed in to QQ Music with WeChat quick login; the window closed on its own, the source showed signed in, playlists and search loaded (QQ Music source 1.0.1 from thedavidweng/openkara-sources, local registry)
  • Frontend: no changes

claude.ai/code/session_01N6gLNB1dzAQCEYjvHhcRPV

Files changed
…
coderabbitai[bot]commented· 2 weeks ago

[!WARNING]

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: thedavidweng/OpenKara
  • Branch: feat/web-sign-in-cookie-alternatives
  • File: .coderabbit.yaml
  • Commit: b56ecd2
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 752175cb-c3cb-4a78-b5ab-09b5c55dc96a
Commits

Reviewing files that changed from the base of the PR and between c5343ea641816113602b6986f09b1655e78b6556 and b56ecd277cbbafb4a594a67d23180938bdce7477.

Files selected for processing: 4

  • docs/references/contracts/streaming-source-protocol.md
  • src-tauri/src/commands/catalog.rs
  • src-tauri/src/source_host/mod.rs
  • src-tauri/src/source_host/registry.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
kilo-code-bot[bot]commented· 2 weeks ago

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • docs/references/contracts/streaming-source-protocol.md
  • src-tauri/src/commands/catalog.rs
  • src-tauri/src/source_host/mod.rs
  • src-tauri/src/source_host/registry.rs

Reviewed by free · Input: 16.6K · Output: 2K · Cached: 81.9K

Sign in to comment.

Merge readiness

Checking mergeability after the indexing worker computes the current branch state.

Autopilot

Debug

Reviews

Approved0
ReviewersNone yet

Configure an OpenRouter key in repository settings.