Edit in GitHubLog an issue

Service Account Connection

A Service Account connection allows your application to call Adobe services on behalf of the application itself or on behalf of an enterprise organization.

For this type of connection, you will create a JSON Web Token (JWT) that encapsulates your credentials and begin each API session by exchanging the JWT for an access token.

The JWT encodes all of the identity and security information required to obtain an access token and must be signed with the private key that is associated with a public key certificate specified on your integration.

This article walks you through the steps to set up a Service Account connection.

Service Account connection workflow

Step 1: Create a project in Adobe Developer Console

Integrations are now created as part of a "project" within Adobe Developer Console. For complete steps to creating a project in Console, begin by reading the Adobe Developer Console getting started guide and projects overview.

Once you have created a project, you will be able to add services including APIs, Adobe I/O Events registrations, and Adobe I/O Runtime.

Step 2: Add an API to your project using Service Account authentication

To add an API that uses Service Account (JWT) authentication, follow the steps outlined in the guide for adding an API to a project using Service Account authentication.

During the API configuration process, you will be able to generate a key pair and download the private key.

When the API has been successfully connected, you will be able to access the newly generated credentials including Client ID and Client Secret, as well as generate an access token using the private key that you generated during configuration.

Step 3: Try It

In order to try out the connection, follow the steps in the Adobe Developer Console credentials guide for generating a JWT token and copy the Sample cURL command provided.

Next, open Postman and select Import > Paste Raw Text and paste the copied curl command. Select Import to continue.

Postman import

With the command imported, select Send to execute.

Postman send

The example curl sends a POST request to https://ims-na1.adobelogin.com/ims/exchange/jwt using the parameters outlined in the table below.

The response body includes your newly generated access token (access_token).

ParameterDescription
client_id
The Client ID provided in Console as part of the Credential details.
client_secret
The Client Secret provided in Console as part of the Credential details.
jwt_token
A base-64 encoded JSON Web Token that encapsulates the identity of your connection, signed with a private key that corresponds to a public key certificate attached to the connection. This token can be generated in Console from the Generate JWT tab within Credentials. Note that this token has the expiration time parameter exp set to 24 hours from when the token is generated.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.