[AEM Forms]{class="badge positive" title="Gilt für AEM Forms)."}

JWT (JSON Web Token) Server-to-Server Authentication

JWT server-to-server authentication in AEM Forms, particularly for server-side integrations with AEM as a Cloud Service, involves a specific process to securely interact with AEM services. JWT server-to-server authentication is supported by AEM Developer Console.

Voraussetzungen

Bevor Sie beginnen, stellen Sie sicher, dass die folgenden Voraussetzungen erfüllt sind:

How to Generate an Access Token Using JWT Credentials?

Follow the steps below which shows you how to generate an access token from the JWT credentials.

  1. Adobe Cloud Manager

    1. Log in to your Cloud Manager account.

    2. On your selected program, click Program Overview.

      Cloud Manager Account

    3. On your program, click three-dots menu and select Developer Console.

      Entwicklerkonsole

  2. AEM Developer Console

    1. Login in AEM Developer Console

    2. Click Integrations located on the upper menu bar.

      Integrationen

    3. Click the option to Create new technical account.

      Create new technical account

    Once you click on create a new technical account, required information to generate access token such as client id and client secret along with other technical account information including private key, public key, expiration date generates.

    JWT Credentials

  3. Generate and Save Credentials

    1. API-Anmeldeinformationen für Einträge

      code language-text
      API Credentials:
      ================
      Client ID: <your_client_id>
      Client Secret: <your_client_secret>
      Technical Account ID: <tech_account_id>
      Organization ID: <org_id>
      Scopes: AdobeID,openid,read_organizations
      
  4. Generieren von Zugriffstoken

    Programmgesteuerte Generierung von Token mithilfe des cURL-Befehls:

    Erforderliche Anmeldedaten:

    • Client-ID
    • Client-Geheimnis
    • Bereiche (typischerweise: openid, AdobeID, read_organizations, additional_info.projectedProductContext, read_pc.dma_aem_cloud, aem.document)

    Token-Endpunkt:

    code language-none
    https://ims-na1.adobelogin.com/ims/token/v3
    

    Beispielanfrage (cURL):

    code language-bash
    curl -X POST 'https://ims-na1.adobelogin.com/ims/token/v3' \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -d 'grant_type=client_credentials' \
    -d 'client_id=<YOUR_CLIENT_ID>' \
    -d 'client_secret=<YOUR_CLIENT_SECRET>' \
    -d 'scope=AdobeID,openid,read_organizations'
    

    Antwort:

    code language-json
    {
    "access_token": "eyJhbGciOiJSUz...",
    "token_type": "bearer",
    "expires_in": 86399
    }
    
NOTE
Weitere Informationen zu Service-Anmeldeinformationen und zum Generieren eines Zugriffstokens mithilfe der Adobe IMS-API finden Sie hier.

Sie können jetzt das generierte Zugriffstoken verwenden, um API-Aufrufe für Entwicklungs-, Staging- oder Produktionsumgebungen durchzuführen.

Verwandte Artikel

Erfahren Sie, wie Sie eine Umgebung für synchrone (On-Demand) und asynchrone (Batch) Forms Communications-APIs einrichten:

Synchrone APIs

AEM Forms-Kommunikations-APIs - synchron

Erfahren Sie, wie Sie eine Umgebung für synchrone (On-Demand) Forms Communications-APIs einrichten, die Dokumente sofort generieren oder verarbeiten.

Weitere Informationen

Asynchrone APIs

AEM Forms Communications APIs - asynchron (Batch)

Erfahren Sie, wie Sie eine Umgebung für asynchrone (Batch-)Forms Communications-APIs einrichten, die mehrere Dokumente nach einem Zeitplan generieren oder verarbeiten.

Weitere Informationen

recommendation-more-help
fbcff2a9-b6fe-4574-b04a-21e75df764ab