Files
ocis/web/packages
Jakub Záruba 95c73c72e7 fix: apply renewed access token in embed mode with delegated authentication (#12856)
* fix: apply renewed access token in embed mode with delegated authentication

The "owncloud-embed:update-token" message listener was registered unbound,
so it crashed on `this.configStore` before applying the renewed token. It
also passed the whole message payload to updateContext instead of the
access token string. The embedded instance therefore kept the initial
access token until it expired and the user got logged out.

* test: merge delegated token update tests into the existing describe block

Move the window.dispatchEvent based tests into the pre-existing
handleDelegatedTokenUpdate block and add coverage for update-token
messages arriving without an access token.

* test: assert renewed token payload and shorten changelog title

Assert the exact updateContext payload in the trusted-origin test so it
guards againsst the payload regression, and parameterize the message event
helper so the positive case can send a distinct renewed token. Shorten the
changelog title to fit the 80 character lint limit.
2026-08-29 19:50:13 +00:00
..