ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

[Docs] Add required JWT payload properties to collaboration token endpoint guide

Open alexeckermann opened this issue 8 years ago • 3 comments

Other - Documentation addition

On the Creating token endpoint guide for collaboration services, under Creating tokens for CKEditor Cloud Services there should be a list of required payload properties.

  • iss
  • iat
  • user with the minimum CS needs
  • services with ckeditor-collaboration

Whilst that is mostly self explanatory given the purpose of the token to provide permissions and user info, there was one small annoyance in a typical/default implementation using ruby-jwt where iat will not be defined in the payload. This raises an Invalid token error in CK with no detail that it was the missing iat property.

It was a minor hiccup in our implementation, it didn't take much time to identify and fix, but we could spare others the time to figure out the issue in future with this minor addition to the guide.

I couldn't find the repo location of these guides, as I would have happily submitted a PR.

alexeckermann avatar Jul 13 '18 00:07 alexeckermann

cc @pjasiun @czerwonkabartosz

Reinmar avatar Jul 13 '18 08:07 Reinmar

Actually cc @wwalc, who is the author of this guide.

pjasiun avatar Jul 13 '18 09:07 pjasiun

Added in https://docs.ckeditor.com/cs/latest/guides/token-endpoints/tokenendpoint.html#required-payload-properties. Thanks!

wwalc avatar Jul 30 '18 13:07 wwalc