Skip to content

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

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

tjdett wants to merge 1 commit into
tinymce/7from
hotfix/7/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 on tinymce/8. tinymce/7 had no TestDrive code, so this adds it.

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 }
 antora.yml                  # + tinymce_live_demo_api_key
 modules/ROOT/examples/live-demos/
 ├── importword/index.js     # + importword_token_provider
 ├── exportword/index.js     # + exportword_token_provider
 └── exportpdf/index.js      # + exportpdf_token_provider

tinymce/7 has no exportpdf-v2 demo directory, so there is nothing to change there. The option names and { token } return shape follow partials/configuration/{importword,exportword,exportpdf}_token_provider.adoc on this branch. tinymce/7 had no API key attribute for demos, so tinymce_live_demo_api_key is added next to tinymce_live_demo_url with the same key.

Evidence

  • Before: the three demo index.js files had no token provider.
    After: all three 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:21
@tjdett
tjdett requested review from a team, kemister85 and soritaheng as code owners November 30, 2026 12:21
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