From f49fc770cedaf3e089b2c995ab8fe711c546441e Mon Sep 17 00:00:00 2001 From: moritzraho Date: Mon, 19 Jan 2026 12:59:04 +0100 Subject: [PATCH 1/2] chore: redirect to core lib for runtime actions --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7551499..a630173 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,7 @@ const token = await getToken('my-config') ## Running in an Adobe I/O Runtime action -**Note that Adobe Developer App Builder applications should not own the responsibility to generate their own IMS access tokens. -We strongly discourage this approach in favor of more secure implementation patterns that are documented in our [App Builder Security Guide](https://developer.adobe.com/app-builder/docs/guides/security/#runtime-specific-guidelines).** +**Note: Please prefer the more lightweight [@adobe/aio-lib-core-auth](https://github.com/adobe-developer-platform/app-builder-aio-lib-core-auth) library to generate OAuth tokens from an Adobe I/O Runtime action.** The AIO IMS Library can also be used in an Adobe I/O Runtime action. In this case the IMS configuration must be set beforehand. The library is relying on the [Adobe I/O Cloud State Library](https://github.com/adobe/aio-lib-state) to persist the access tokens across action invocations and reduce the number of requests to IMS. From f0e828df9c4f3ae4523160b93b47e8b7afd12b58 Mon Sep 17 00:00:00 2001 From: moritzraho Date: Mon, 19 Jan 2026 13:13:24 +0100 Subject: [PATCH 2/2] more details --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a630173..3c67c47 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,9 @@ const token = await getToken('my-config') ## Running in an Adobe I/O Runtime action -**Note: Please prefer the more lightweight [@adobe/aio-lib-core-auth](https://github.com/adobe-developer-platform/app-builder-aio-lib-core-auth) library to generate OAuth tokens from an Adobe I/O Runtime action.** +**Note: Please prefer the more lightweight [@adobe/aio-lib-core-auth](https://github.com/adobe-developer-platform/app-builder-aio-lib-core-auth) library to generate OAuth tokens from an Adobe I/O Runtime action. The core library focuses on generating OAuth tokens efficiently and doesn't rely on the complex context/plugin logic needed in the CLI. It also uses in-memory caching instead of App Builder State storage, which may run into usage limitations** -The AIO IMS Library can also be used in an Adobe I/O Runtime action. In this case the IMS configuration must be set beforehand. The library is relying on the [Adobe I/O Cloud State Library](https://github.com/adobe/aio-lib-state) to persist the access tokens across action invocations and reduce the number of requests to IMS. +The AIO IMS Library can also be used in an Adobe I/O Runtime action. In this case the IMS configuration must be set beforehand. The library is relying on the [Adobe App Builder State Library](https://github.com/adobe/aio-lib-state) to persist the access tokens across action invocations and reduce the number of requests to IMS. Here is an Adobe I/O Runtime action example that leverages the AIO IMS: