Adjust easy image to CS token refreshing mechanism #2558
Labels
package:easy-image
type:task
This issue reports a chore (non-production change) and other types of "todos".
Milestone
After this ticket will be closed: https://github.com/ckeditor/ckeditor-cloudservices-core/issues/4 CS will automatically request and update token. That's really cool.
But it means that easy image configuration will have to change. Instead of the token, one will set the URL and the
Token
class will automatically request for the token.However, it also means that we need to have a plugin which takes the configuration, create a token class and provide it to all plugins which connect with CS. Otherwise, each plugin will create its own request to refresh the token what will be wrong.
Also, such plugin should not be part of the
easy-image
repository, because it would be strange that all plugins requireckeditor5-easy-image
. So we need ackeditor5-cloudeservices
repository.In fact, it will be nice because of one more reason: it will fit the convention that the name of the configuration is the name of the plugin which reads this configuration. Now,
easy-image
is usingcloudeServices.token
config. After the changecloudeServices.tokenUrl
will be the configuration of thecloudeServices
plugin.The text was updated successfully, but these errors were encountered: