tinymce-docs
tinymce-docs copied to clipboard
Problem with page tinydrive/integrations/dropbox-integration.md
The following page:
affected page: https://www.tiny.cloud/docs/tinydrive/integrations/dropbox-integration/ leaves out several elements for setup. When I click the choose a file button per that example, I receive a series of errors
Error 1 JWT authentication
The only problem here is that the page did not link to this part of the set up: https://www.tiny.cloud/docs-4x/configure/jwt-authentication/
Error 2 Error: Could not load url https://catalog.tiny.cloud/1/client/files/list?apiKey=[my api key] Unauthorized (401)
No luck in googling this guy. My best guess is that it thinks I haven't added my domain to my tiny account but localhost (my test environrment is in there.
Hi @another4til7 ,
Thanks for the feedback!
Error 1 We currently don't maintain the 4x docs (TinyMCE 4 has reached end of support), the newer version of this page is a bit better: https://www.tiny.cloud/docs/tinydrive/jwt-authentication/. The Tiny Drive documentation is undergoing an overhaul at the moment, with the newer content to be released with TinyMCE 6 early next year (I'm actual working on Tiny Drive docs today). I'll make sure this is clearer in the next version of the docs.
Error 2 Once you set up JWT authentication, you need to add a public key to the JWT section in https://www.tiny.cloud/my-account/jwt/. The public key should be generated from the private key used for your JWT endpoint/server. This is so the Tiny Drive server can check that the JWT was generated using the same private key as the public key you provide us; to prevent unauthorised access to your Tiny Drive. Adding your domain to the Tiny Account is required to load the plugin on your domain.
I hope this helps Tyler
Part of the problem was that I was using the authenticator function example. From here I think: https://www.tiny.cloud/docs-4x/configure/jwt-authentication/ That function is really just a stub. It would help to have a comment in that function example that it's incomplete.
Anyway, it turned out that the smarter answer was to bumble my way to the Tiny Drive [PHP] Starter Project. Those should get much more prominant billing.
A second problem was caused by testing with firefox. Firefox does not like self-signed certs. A little flailing around and I created a root CA to sign the certs ... and imported the RootCA into Firefox.
thanks, Tim
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, November 3rd, 2021 at 8:51 PM, Tyler Kelly @.***> wrote:
Hi @.***(https://github.com/another4til7) ,
Thanks for the feedback!
Error 1 We currently don't maintain the 4x docs (TinyMCE 4 has reached end of support), the newer version of this page is a bit better: https://www.tiny.cloud/docs/tinydrive/jwt-authentication/. The Tiny Drive documentation is undergoing an overhaul at the moment, with the newer content to be released with TinyMCE 6 early next year (I'm actual working on Tiny Drive docs today). I'll make sure this is clearer in the next version of the docs.
Error 2 Once you set up JWT authentication, you need to add a public key to the JWT section in https://www.tiny.cloud/my-account/jwt/. The public key should be generated from the private key used for your JWT endpoint/server. This is so the Tiny Drive server can check that the JWT was generated using the same private key as the public key you provide us; to prevent unauthorised access to your Tiny Drive. Adding your domain to the Tiny Account is required to load the plugin on your domain.
I hope this helps Tyler
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.