Skip to content

Commit 8429de3

Browse files
committed
Document trial demo identity service for tinymceai_token_provider
1 parent 6559a04 commit 8429de3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

modules/ROOT/pages/tinymceai.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ liveDemo::{plugincode}[]
2424
To set up the {pluginname} plugin in {productname}:
2525

2626
* add `{plugincode}` to the `plugins` option in the editor configuration;
27-
* configure the `tinymceai_token_provider` option to provide authentication tokens (must return `+{ token: string }+`). During a {cloudname} trial, the xref:tinymceai-jwt-authentication-intro.adoc#trial-demo-identity-service[demo identity service] can issue JWTs without a dedicated token endpoint;
27+
* configure the `tinymceai_token_provider` option to provide authentication tokens (must return `+{ token: string }+`). During a {cloudname} trial, the xref:tinymceai-jwt-authentication-intro.adoc#trial-demo-identity-service[demo identity service] can supply JWTs so a custom token endpoint is not required;
2828
* when the `toolbar` option is omitted or left at the default, the Silver theme toolbar already includes the AI toolbar buttons once the plugin is enabled: `+tinymceai-chat+` image:icons-premium/ai-assistant.svg[Chat icon,24px], `+tinymceai-quickactions+` image:icons/ai-prompt.svg[Quick Actions icon,24px], and `+tinymceai-review+` image:icons-premium/ai-review.svg[Review icon,24px]. When a custom `toolbar` string is set, add those button ids to the string explicitly.
2929

3030
[[minimal-setup]]

modules/ROOT/partials/configuration/tinymceai_options.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ The JWT payload must include these required claims:
5353

5454
For more information about JWT setup, required claims, and the authentication object, see xref:tinymceai-jwt-authentication-intro.adoc[JWT Authentication].
5555

56+
[NOTE]
57+
====
58+
During a {cloudname} trial, a xref:tinymceai-jwt-authentication-intro.adoc#trial-demo-identity-service[demo identity service] is available so `tinymceai_token_provider` can obtain JWTs without implementing a custom token endpoint. See xref:tinymceai-jwt-authentication-intro.adoc[JWT Authentication] for setup and examples.
59+
====
60+
5661
The function must return the token value within an object with a `+token+` property. Ensure the response from the token endpoint is handled correctly, based on the response format:
5762

5863
* **JSON response**: Endpoint returns `+{ "token": "eyJ..." }+`. Use `+fetch(url).then(r => r.json())+`.

0 commit comments

Comments
 (0)