[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:
- Ensure that you have access to the Adobe Cloud Manager specific to the environment you use.
- Assign the System Administrator or Developer role to access Adobe Cloud Manager.
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.
-
Adobe Cloud Manager
-
Log in to your Cloud Manager account.
-
On your selected program, click Program Overview.
-
On your program, click three-dots menu and select Developer Console.
-
-
AEM Developer Console
-
Login in AEM Developer Console
-
Click Integrations located on the upper menu bar.
-
Click the option to 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.
-
-
Generate and Save Credentials
-
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
-
-
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/v3Beispielanfrage (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 }
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:
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.
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.