aio-lib-java-core
is the Adobe I/O - Java SDK - Core Library.
This Java library holds various core utilities used across the other modules.
It also holds the core Adobe Developer Console
Workspace Builder.
This library holds a Workspace
POJO modeling
your Adobe Developer Console Project Workspace,
To get you started quickly use a .properties
file,
- see our sample config file in our jUnit Test.
- download your
project
configurations file from your Adobe Developer Console Project overview page - map your
project
configurations with this properties
For now, you do have a bit of copy and paste to do, but we have a plan to streamline the process:
The Workspace
POJO holds your Adobe Developer Console Project configurations
(download your project
configurations file from your Adobe Developer Console Project overview page):
aio_project_id
your Adobe Developer Console project id (project.id
)aio_consumer_org_id
your Adobe Developer Console consumer orgnaization id (project.org.id
)aio_ims_org_id
your Adobe Developer Console IMS Organization ID (project.org.ims_org_id
)aio_workspace_id
your Adobe Developer Console workspace Id (project.workspace.id
)
The Workspace
POJO must also hold your Adobe Developer Auth configurations, pick one of the following authentication methods:
For OAuth2 authentication, you will need to provide the following properties:
aio_api_key
your Adobe Developer Console OAuth Client ID (project.workspace.details.credentials[i].oauth_server_to_server.client_id
)aio_client_secret
one your Adobe Developer Console OAuth Client Secrets (project.workspace.details.credentials[i].oauth_server_to_server.client_secret
)aio_oauth_scopes
a 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 JWT authentication, you will need to provide the following properties:
aio_credential_id
your Adobe Developer Console jwt credential id (project.workspace.details.credentials[i].id
)aio_client_secret
your Adobe Developer Console jwt credential client secret (project.workspace.details.credentials[i].jwt.client_secret
)aio_api_key
your Adobe Developer Console jwt credential API Key (or Client ID) (project.workspace.details.credentials[i].jwt.client_id
)aio_meta_scopes
a comma separated list of metascopes associated with your API, see your Adobe Developer Console jwt credential metascopes (project.workspace.details.credentials[i].jwt.meta_scopes
)aio_technical_account_id
your Adobe Developer Console jwt credential technical account id (project.workspace.details.credentials[i].jwt.technical_account_id
)
On top of these, the Workspace
POJO can also hold your JWT private Key
(associated with the public key you uploaded in your Adobe Developer Console Workspace)
this will help to power Adobe JWT authentication flow and transparently add the proper Bearer
authentication token to all your request,
Note the easiest way is to stuff your Private Key as a pkcs8
base64 encoded String
using the aio_encoded_pkcs8
property key.
confer aio-lib-java-ims documentation for more details.
This Library is build with maven (it also runs the unit tests):
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.