Skip to content

Commit

Permalink
DOC-2276: updates to cloud-troubleshooting.adoc with new `read-only…
Browse files Browse the repository at this point in the history
…` ref and links to `invalid-api-key.adoc` page. (#3056)

* DOC-2276: updates to  with new  ref and links to  page.

* Update modules/ROOT/pages/cloud-troubleshooting.adoc

* Update changelog.md
  • Loading branch information
kemister85 authored Feb 4, 2024
1 parent 4873c49 commit 12a5d49
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 28 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/

### Unreleased

### 2024-02-05

- DOC-2276: updates to `cloud-troubleshooting.adoc` with new `read-only` ref and links to `invalid-api-key.adoc` page.

### 2024-01-31

Expand Down
105 changes: 77 additions & 28 deletions modules/ROOT/pages/cloud-troubleshooting.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ When {cloudname} detects a problem, it will show an editor notification containi

NOTE: The wording of the notifications shown here may differ from the actual notifications from {cloudname}.

[[A-valid-API-key-is-required-to-continue-using-TinyMCE.-Please-alert-the-admin-to-check-the-current-API-key]]
== "A valid API key is required to continue using {productname}. **Please alert the admin** to check the current API key. xref:invalid-api-key.adoc[Click here to learn more.]"
'''

=== Scenario (one)
[[invalid-api-key-cloud-troubleshooting]]
== Invalid API Key

==== Cause
[[A-valid-API-key-is-required-to-continue-using-TinyMCE.-Please-alert-the-admin-to-check-the-current-API-key]]
=== "A valid API key is required to continue using {productname}. **Please alert the admin** to check the current API key. xref:invalid-api-key.adoc[Click here to learn more.]"

==== Cause "No API Key"

This notification is *only shown* when either:

Expand Down Expand Up @@ -41,9 +44,7 @@ To retrieve your API key, or to sign up for an API key, visit: link:{accountsign

NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more information on how to fix a `invalid API key` with {productname}.

=== Scenario (two)

==== Cause
==== Cause "Invalid API Key"

This notification is shown when the API key provided cannot be found on the {cloudname} server.

Expand All @@ -55,31 +56,32 @@ The `+apiKey+` must be:

==== Solution

Check the `+apiKey+` provided in the script tag:
Check the `apiKey` provided in the script tag:

* Remove any leading or trailing spaces.
* Any other characters that are not in your API key. If you are using variable substitution, ensure that the variable is substituting properly.
* Matches the API key shown at {accountpageurl}.
* Remove any leading or trailing spaces
* Remove any other characters that are not in your `apiKey`. If you are using variable substitution, ensure that the variable is substituting properly
* Ensure the `apiKey` matches the API key shown at {accountpageurl}.

NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more information on how to fix a `invalid API key` with {productname}.

'''

[[This-domain-is-not-registered-in-the-TinyMCE-Customer-Portal.-Please-alert-the-admin-to-add-it-to-the-approved-domains-to-continue-using-TinyMCE.]]
== "This domain is not registered in the {productname} Customer Portal. **Please alert the admin** to add it to the approved domains to continue using {productname}. xref:invalid-api-key.adoc[Click here to learn more.]"
[[domain-not-registered]]
== Domain Not Registered

=== Scenario
[[This-domain-is-not-registered-in-the-TinyMCE-Customer-Portal.-Please-alert-the-admin-to-add-it-to-the-approved-domains-to-continue-using-TinyMCE.]]
=== "This domain is not registered in the {productname} Customer Portal. **Please alert the admin** to add it to the approved domains to continue using {productname}. xref:invalid-api-key.adoc[Click here to learn more.]"

==== Cause

This notification is shown when the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer[*Referer*] of the page does not match the list of approved domains stored against your `+apiKey+`. {cloudname} verifies the domain {productname} is loading from by checking the domain portion of the *Referer* header in the network request. You can view a list of your approved domains on your link:{accountpageurl}/[{accountpage}].

Sometimes the domain in the *Referer* header does not match with the URL in the browser's address bar. To check the *Referer* header:

. Open your browser's _Developer's Tools_.
. Open the _Network_ tab.
. Find and select the request being made to load {productname} from {cloudname} with your API key.
. Click on the *Headers* tab.
* Open your browser's _Developer's Tools_.
* Open the _Network_ tab.
* Find and select the request being made to load {productname} from {cloudname} with your API key.
* Click on the *Headers* tab.

In the section called *Request Headers* there should be a field for *Referer*. This is the value that {productname} is checking against your approved domains. It must match one of your approved domains listed on your link:{accountpageurl}/[{accountpage}].

Expand All @@ -89,16 +91,16 @@ If the `+Referer+` is correct for the site, ensure that the domain is included i

'''

[[were-unable-to-check-your-domain-because-the-referer-header-is-missing-please-read-the-guide-on-how-to-ensure-your-referer-header-is-present-so-we-can-then-customize-your-editor-experience]]
== "We’re unable to check your domain because the referer header is missing. Please read the Guide on how to ensure your referer header is present, so we can then customize your editor experience."
[[referer-heading-missing]]
== Referer Heading Missing

=== Scenario
[[were-unable-to-check-your-domain-because-the-referer-header-is-missing-please-read-the-guide-on-how-to-ensure-your-referer-header-is-present-so-we-can-then-customize-your-editor-experience]]
=== "We’re unable to check your domain because the referer header is missing. Please read the Guide on how to ensure your referer header is present, so we can then customize your editor experience."

==== Cause

This notification is shown if the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer[*Referer* header] is absent for the network request when loading {productname} from {cloudname}. {cloudname} verifies the domain {productname} is loading from by checking the domain of the *Referer* header in the network request.

_Referer_ headers are sometimes removed by browser settings or browser extensions. {cloudname} only needs the domain in the *Referer* header, so for improved performance and privacy {companyname} recommends setting the `+referrerpolicy+` to `+origin+` when requesting {cloudname} resources.
* This notification is shown if the https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer[*Referer* header] is absent for the network request when loading {productname} from {cloudname}. {cloudname} verifies the domain {productname} is loading from by checking the domain of the *Referer* header in the network request.
* _Referer_ headers are sometimes removed by browser settings or browser extensions. {cloudname} only needs the domain in the *Referer* header, so for improved performance and privacy {companyname} recommends setting the `+referrerpolicy+` to `+origin+` when requesting {cloudname} resources.

==== Solution

Expand All @@ -111,10 +113,11 @@ Once you have identified the setting or extension, modify it to allow just the `

'''

[[the-___-premium-plugin-is-not-enabled-on-your-api-key-upgrade-your-account]]
== "The ___ premium plugin is not enabled on your API key. Upgrade your account."
[[troubleshooting-premium-plugins]]
== Troubleshooting Premium Plugins

=== Scenario
[[the-___-premium-plugin-is-not-enabled-on-your-api-key-upgrade-your-account]]
=== "The ___ premium plugin is not enabled on your API key. Upgrade your account."

==== Cause

Expand All @@ -126,4 +129,50 @@ You may also be seeing this notification if you are using the wrong API key. Ens

Either remove the premium plugin from your {productname} configuration, or upgrade your subscription to provide access to that premium plugin.

NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more information on how to fix a `invalid API key` with {productname}.
NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more information on how to fix a `invalid API key` with {productname}.

'''

[[read-only-mode-no-api-key]]
== Read-only mode - No API Key

=== “{productname} is in read-only mode. **Please alert the admin** that an API key is required for continued use. xref:invalid-api-key.adoc[Learn more]

==== Cause "No API Key (Read only mode)"

This message is sent when the developer has not supplied an API key, typically because they've copied a getting-started script and have not completed the official https://www.tiny.cloud/auth/signup/[signup] process to get an API key.

==== Solution

* **Please alert your Admin** that an API key is required for continued use. xref:invalid-api-key.adoc[Learn more], or
* Sign up for a API key by visiting https://www.tiny.cloud/auth/signup/[www.tiny.cloud/auth/signup], and
* Update your {productname} configuration.

NOTE: Visit our xref:invalid-api-key.adoc[Invalid API key] page for more information on how to fix a `invalid API key` with {productname}.

[[read-only-mode-invalid-api-key]]
== Read-only mode - Invalid API Key

=== “{productname} is in read-only mode. **Please alert the admin** to provide a valid API key to continue use. xref:invalid-api-key.adoc[Learn more] Your {productname} editor state has been set to read-only mode.”

==== Cause "Invalid API Key (Read only-mode)"

This message is shown when the API key is not correct, perhaps because of a typo.

==== Solution

* Login to your {productname} account and confirm that your API key matches your unique key by visiting https://www.tiny.cloud/auth/login/[www.tiny.cloud/auth/login/].
* or to sign up for an API key, visit: link:{accountsignup}/[{cloudname}].

[[read-only-mode-invalid-origin]]
== Read-only mode - Invalid Origin

=== “{productname} is in read-only mode. **Please request that the admin** add this domain to the approved domains in the Customer Portal. xref:invalid-api-key.adoc[Learn more]”

==== Cause "Invalid Origin (Read only mode)"

This message is shown when {productname} is loaded from a domain that has not been added to the approved domains in our account portal.

==== Solution

Please request that your admin add this domain to the approved domains in the Customer Portal xref:invalid-api-key.adoc[Learn more]

0 comments on commit 12a5d49

Please sign in to comment.