Skip to content

feat: centralize ARVIO Cloud authentication via auth.arvio.tv#472

Merged
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:feature/centralized-auth
Jul 22, 2026
Merged

feat: centralize ARVIO Cloud authentication via auth.arvio.tv#472
ProdigyV21 merged 1 commit into
ProdigyV21:mainfrom
Himanth-reddy:feature/centralized-auth

Conversation

@Himanth-reddy

Copy link
Copy Markdown
Collaborator

Centralizes ARVIO Cloud authentication on auth.arvio.tv. This enables Single Sign-On (SSO) login flow for both the web app and TV pairing client flow, simplifying configurations and future integrations.

@Himanth-reddy
Himanth-reddy marked this pull request as ready for review July 22, 2026 00:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 571e27889b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/lib/store.tsx
Comment on lines +825 to +829
if (hash.includes("access_token=") && hash.includes("refresh_token=")) {
try {
const params = new URLSearchParams(hash.replace(/^#/, ""));
const access_token = params.get("access_token");
const refresh_token = params.get("refresh_token");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Require state before accepting auth hash tokens

Because this effect runs on any app load and trusts any URL hash containing access_token and refresh_token, a crafted link such as https://web.arvio.tv/#access_token=<attacker-token>&refresh_token=<attacker-refresh> will silently save that session and log the victim into the attacker's ARVIO Cloud account, causing profile/watch-history/settings sync to go to the wrong account. The callback should only accept tokens when they match a pending auth request state/nonce that was generated before redirecting to the auth portal and echoed back.

Useful? React with 👍 / 👎.

@Himanth-reddy
Himanth-reddy force-pushed the feature/centralized-auth branch from 571e278 to 399c954 Compare July 22, 2026 05:51
@ProdigyV21
ProdigyV21 merged commit 5bed6fd into ProdigyV21:main Jul 22, 2026
7 checks passed
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.

2 participants