[AEM Forms]{class="badge positive" title="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.

사전 요구 사항

시작하기 전에 다음 전제 조건이 충족되는지 확인하십시오.

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.

      개발자 콘솔

  2. AEM Developer Console

    1. Login in AEM Developer Console

    2. Click Integrations located on the upper menu bar.

      통합

    3. Click the option to Create new technical account.

      Create new technical account

    새 기술 계정 만들기를 클릭하면 개인 키, 공개 키, 만료 날짜를 포함한 기타 기술 계정 정보와 함께 클라이언트 ID 및 클라이언트 암호와 같은 액세스 토큰을 생성하는 데 필요한 정보가 생성됩니다.

    JWT 자격 증명

  3. 자격 증명 생성 및 저장

    1. API 자격 증명 기록

      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. 액세스 토큰 생성

    cURL 명령을 사용하여 프로그래밍 방식으로 토큰을 생성합니다.

    필요한 자격 증명:

    • 클라이언트 ID
    • 클라이언트 비밀
    • 범위(일반적으로 openid, AdobeID, read_organizations, additional_info.projectedProductContext, read_pc.dma_aem_cloud, aem.document)

    토큰 끝점:

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

    샘플 요청(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'
    

    응답:

    code language-json
    {
    "access_token": "eyJhbGciOiJSUz...",
    "token_type": "bearer",
    "expires_in": 86399
    }
    
NOTE
서비스 자격 증명과 Adobe IMS API를 사용하여 액세스 토큰을 생성하는 방법에 대해 자세히 알아보려면 여기를 클릭하십시오.

이제 생성된 액세스 토큰을 사용하여 개발, 스테이지 또는 프로덕션 환경에 대한 API를 호출할 수 있습니다.

관련 문서

동기식(온디맨드) 및 비동기식(일괄 처리) Forms Communications API에 대한 환경을 설정하는 방법에 대해 알아봅니다.

동기 API

AEM Forms Communications API - 동기

문서를 즉시 생성하거나 처리하는 동기식(온디맨드) Forms Communications API용 환경을 설정하는 방법에 대해 알아봅니다.

자세히 알아보기

비동기 API

AEM Forms Communications API - 비동기(일괄 처리)

예약된 방식으로 여러 문서를 생성하거나 처리하는 비동기(일괄 처리) Forms Communications API에 대한 환경을 설정하는 방법에 대해 알아봅니다.

자세히 알아보기

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