Skip to content

TINYCLOUD-5149: Fetch TestDrive JWTs in the converter live demos - #4479

Open
tjdett wants to merge 1 commit into
tinymce/8from
hotfix/8/TINYCLOUD-5149
Open

tjdett wants to merge 1 commit into
tinymce/8from
hotfix/8/TINYCLOUD-5149

Conversation

@tjdett

@tjdett tjdett commented Nov 30, 2026

Copy link
Copy Markdown
Member

TINYCLOUD-5149 (epic TINYCLOUD-5148)

Summary

The Import from Word, Export to Word and Export to PDF live demos now fetch a TestDrive JWT, so they keep converting without a watermark once services_converters requires one. Same flow as the tinymceai demo.

page load
  POST demo.api.tiny.cloud/1/{key}/auth/random      # session cookie
<plugin>_token_provider
  GET  demo.api.tiny.cloud/1/{key}/jwt/<plugin>     # credentials: include
  return { token }
 modules/ROOT/examples/live-demos/
 ├── importword/index.js     # + importword_token_provider
 ├── exportword/index.js     # + exportword_token_provider
 ├── exportpdf/index.js      # + exportpdf_token_provider (flat and nested editors)
 └── exportpdf-v2/index.js   # + exportpdf_token_provider

The option names and { token } return shape follow partials/configuration/{importword,exportword,exportpdf}_token_provider.adoc. The API key is {{tinymceai_demo_api_key}}, the same attribute the tinymceai demo uses (same key as tinymce_live_demo_url).

Evidence

  • Before: the four demo index.js files had no token provider.
    After: all four parse (node --check). I did not run an Antora build or load the demos in a browser, so the end-to-end "no watermark" result is not yet confirmed.

Merge Danger

Door: two-way

Blast Radius: live demos only

https://claude.ai/code/session_01GP9Pp1gvxYrSWL9qyh4xT4

@tjdett
tjdett marked this pull request as ready for review November 30, 2026 12:20
@tjdett
tjdett requested review from a team, kemister85 and soritaheng as code owners November 30, 2026 12:20
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.

1 participant