Skip to content

fix: apply delegated token updates in embed mode - #3686

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/embed-token-update
Oct 13, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/embed-token-update

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Bound handler: the delegated token update listener is now an arrow function, so this is the auth service instead of window and messages no longer throw.
  • Payload: read the token from event.data.data.access_token/session_id, the documented payload already used by the OIDC callback.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest)
  • test case 1: an opencloud-embed:update-token message after delegated sign-in calls updateContext with the new token

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear requested a review from tammi-23 October 12, 2026 18:19
@AlexAndBear
AlexAndBear merged commit 8f1b8ff into main Oct 13, 2026
27 checks passed
@AlexAndBear
AlexAndBear deleted the fix/embed-token-update branch October 13, 2026 07:13
@openclouders openclouders mentioned this pull request Oct 13, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embed mode with delegated authentication: every postMessage throws and token updates are never applied

2 participants