This demo leverages server to server authentication to allow a Node.js app to authenticate and update content maintained in an AEM as a Cloud Service environment. The app simulates a workflow engine that periodically schedules the On Time
activation date of an asset. The app leverages the AEM-CS API Client Library.
-
Access to an environment in AEM as a Cloud Service with the WKND demo content
-
Service Credentials or Local Development Token as described in Generating Access Tokens for Server Side APIs
-
Technical Account added in the
content-authors
group via the AEM Security Admin UI.
npm install
node workflow.js --aem https://author-p19554-e28364-cmstg.adobeaemcloud.com \
--path /content/dam/wknd/en/adventures/bali-surf-camp/AdobeStock_175749320.jpg \
--file service_token_cm-p19554-e28364.json
node workflow.js -h