aio-aem-core is a Java OSGI bundle hosting OSGI Components
wrapping aio-lib-java-core and aio-lib-java-ims
It hosts the services to
- get the Adobe Developer Console Workspace
- get Access token (using either JWT or OAuth token flow) from Adobe Identity Management System (IMS)
This bundle expects your Adobe Developer Console Workspace Configuration
defined as an OSGI configuration. Its WorkspaceSupplier
service looks up the following OSGI configuration keys:
aio.project.idyour Adobe Developer Console project id (project.id)aio.consumer.org.idyour Adobe Developer Console consumer orgnaization id (project.org.id)aio.ims.org.idyour Adobe Developer Console IMS Organization ID (project.org.ims_org_id)aio.workspace.idyour Adobe Developer Console workspace Id (project.workspace.id)aio.api.keyyour Adobe Developer Console credential API Key (or Client ID)
When using JWT credentials also set
aio.credential.idyour Adobe Developer Console jwt credential idaio.client.secretyour Adobe Developer Console jwt credential client secretaio.meta.scopesa comma separated list of metascopes associated with your API, see your Adobe Developer Console jwt credential metascopesaio.technical.account.idyour Adobe Developer Console jwt credential technical account idaio.encoded.pkcs8your private key (in a base64 encoded pkcs8 format)
When using OAuth credentials also set
aio.client.secretyour Adobe Developer Console oAuth credential client secretaio.oauth.scopesa comma separated list of OAuth scopes associated with your API, see your Adobe Developer Console OAuth scopes (project.workspace.details.credentials[i].oauth_server_to_server.scopes)
For more details on the above please refer to
aio-lib-java-coredocs for more detailsaio-lib-java-imsdocs for more details
When running AEM on premise:
- Open the Web Console, or select the Tools icon, then select Operations and Web Console.
- Scroll down the list to find Adobe I/O Events' Workspace Configuration, update all the values mentioned above, and select Save when done.
When running on AEM as a cloud service, you'll have to use Cloud Manager to deploy these configurations,
choose the appropriate OSGi configuration value types,
mix environment variables, and secret environments variables (for aio.client.secret and aio.encoded.pkcs8).
This bundle comes with a status servlet:
from /bin/aio/workspace.json
you can GET the status of your workspace configuration.
The response json payload should like this:
{
"status": "up",
"details": {
"workspace": {
"imsUrl": "https://ims-na1.adobelogin.com",
"imsOrgId": "...@AdobeOrg",
"apiKey": "..."
}
},
"error": null
}
This Library is build with maven
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.