Metascopes
Determine the Adobe APIs and their metascopes the App Builder action interacts with. List metascopes with comma delimiters in the JWT_METASCOPES key. Valid metascopes are listed in Adobe’s JWT Metascope documentation.
For example, the following value might be added to the JWT_METASCOPES key in the .env:
Private key
The JWT_PRIVATE_KEY must be specially formatted as it is natively a multi-line value, which is not supported in .env files. The easiest way is to base64 encode the private key. Base64 encoding the private key (-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----) can be done using native tools provided by your operating system.
- Open
Terminal - Run the command
base64 -i /path/to/private.key | pbcopy - The base64 output is automatically copied the clipboard
- Paste into
.envas value to corresponding key
- Open
Command Prompt - Run the command
certutil -encode C:\path\to\private.key C:\path\to\encoded-private.key - Run the command
findstr /v CERTIFICATE C:\path\to\encoded-private.key - Copy the base64 output to the clipboard
- Paste into
.envas value to corresponding key
- Open terminal
- Run the command
base64 private.key - Copy the base64 output to the clipboard
- Paste into
.envas value to corresponding key
For example, the following base64-encoded private key might be added to the JWT_PRIVATE_KEY key in the .env:
Inputs mapping
With the JWT credential value set in the .env file, they must be mapped to AppBuilder action inputs to they can be read in the action itself. To do this, add entries for each variable in the ext.config.yaml action inputs in the format: PARAMS_INPUT_NAME: $ENV_KEY.
For example:
The keys defined under inputs are available on the params object provided to the App Builder action.
JWT credentials to access token
In the App Builder action, the JWT credentials are available in the params object, and useable by @adobe/jwt-auth to generate an access token, which in turn can access other Adobe APIs and services.
More help on this topic
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAdobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & EMEA
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.
Adobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & APAC
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.