Skip to content

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

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Embed mode with delegated authentication: every postMessage throws and token updates are never applied. Cause: packages/web-runtime/src/services/auth/authService.ts:279 registers this.handleDelegatedTokenUpdate unbound, so this.configStore (:424) is undefined.

Reproduction Steps

  1. A host page iframes /?embed=true&embed-delegate-authentication=true and answers opencloud-embed:request-token. Login works.
  2. The host sends opencloud-embed:update-token with a new token, or any other message.

Expected Outcome

The token is updated; unrelated messages are ignored.

Actual Outcome

Every message throws Cannot read properties of undefined (reading 'options') and the token is never updated, so the embed stops working when the first token expires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions