기본 인증

기본 인증은 계정 사용자 이름과 계정 암호를 조합하여 애플리케이션에 액세스할 수 있는 인증 유형입니다.

기본 인증의 예 보기
{
  "name": "Basic Authentication",
  "type": "BasicAuthentication",
  "spec": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "description": "defines auth params required for connecting to rest service.",
    "properties": {
      "username": {
        "description": "Username to connect rest endpoint.",
        "type": "string"
      },
      "password": {
        "description": "Password to connect rest endpoint.",
        "type": "string",
        "format": "password"
      }
    },
    "required": [
      "username",
      "password"
    ]
  }
}
속성설명예
authSpec.name지원되는 인증 유형의 이름을 표시합니다.Basic Authentication
authSpec.type소스에서 지원하는 인증 유형을 정의합니다.BasicAuthentication
authSpec.spec인증의 스키마, 데이터 유형 및 속성에 대한 정보를 포함합니다.
authSpec.spec.$schema인증에 사용되는 스키마를 정의합니다.http://json-schema.org/draft-07/schema#
authSpec.spec.type스키마의 데이터 유형을 정의합니다.object
authSpec.spec.description인증 유형과 관련된 추가 정보를 표시합니다.
authSpec.spec.properties인증에 사용되는 자격 증명에 대한 정보를 포함합니다.
authSpec.spec.properties.username응용 프로그램과 연결된 계정 사용자 이름입니다.
authSpec.spec.properties.password응용 프로그램과 연결된 계정 암호입니다.
authSpec.spec.requiredExperience Platform에서 입력해야 할 필수 값으로 필요한 필드를 지정합니다.username

API 키 인증

API 키 인증은 요청에 API 키 및 기타 관련 인증 매개 변수를 제공하여 API에 액세스하는 보안 방법입니다. 특정 API 정보에 따라 API 키를 요청 헤더, 쿼리 매개 변수 또는 본문의 일부로 보낼 수 있습니다.

API 키 인증을 사용할 때 일반적으로 다음 매개 변수가 필요합니다.

매개 변수유형필수 여부설명
host문자열아니요리소스 URL.
authKey1문자열예API 액세스에 필요한 첫 번째 인증 키입니다. 일반적으로 요청 헤더 또는 쿼리 매개 변수에서 전송됩니다.
authKey2문자열선택 사항입니다두 번째 인증 키. 필요한 경우 이 키를 사용하여 요청의 유효성을 추가로 검사할 수 있습니다.
authKeyN문자열선택 사항입니다필요에 따라 사용할 수 있지만 API인 추가 인증 변수입니다.
API 키 인증 보기
{
  "name": "API Key Authentication",
  "type": "KeyBased",
  "spec": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "description": "Define authentication parameters required for API access",
    "properties": {
      "host": {
        "type": "string",
        "description": "Enter resource URL host path"
      },
      "authKey1": {
        "type": "string",
        "format": "password",
        "title": "Authentication Key 1",
        "description": "Primary authentication key for accessing the API",
        "restAttributes": {
          "headerParamName": "X-Auth-Key1"
        }
      },
      "authKey2": {
        "type": "string",
        "format": "password",
        "title": "Authentication Key 2",
        "description": "Secondary authentication key, if required",
        "restAttributes": {
          "headerParamName": "X-Auth-Key2"
        }
      },
      ..
      ..
      "authKeyN": {
        "type": "string",
        "format": "password",
        "title": "Additional Authentication Key",
        "description": "Additional authentication keys as needed by the API",
        "restAttributes": {
          "headerParamName": "X-Auth-KeyN"
        }
      }
    },
    "required": [
      "authKey1"
    ]
  }
}

인증 비헤이비어

restAttributes 매개 변수를 사용하여 API 키를 요청에 포함하는 방법을 정의할 수 있습니다. 예를 들어 아래 예에서 headerParamName 특성은 X-Auth-Key1을(를) 헤더로 보내야 함을 나타냅니다.

  "restAttributes": {
      "headerParamName": "X-Auth-Key1"
  }

각 인증 키(예: authKey1, authKey2 등) restAttributes과(와) 연결하여 요청을 보내는 방법을 지정할 수 있습니다.

authKey1에 "headerParamName": "X-Auth-Key1"이(가) 있는 경우. 즉, 요청 헤더에 X-Auth-Key:{YOUR_AUTH_KEY1}이(가) 포함되어야 합니다. 또한 키 이름과 headerParamName이(가) 반드시 같을 필요는 없습니다. 예:

  • authKey1에 headerParamName: X-Custom-Auth-Key이(가) 있을 수 있습니다. 즉, 요청 헤더에서 authKey1 대신 X-Custom-Auth-Key을(를) 사용합니다.
  • 반대로 authKey1은(는) headerParamName: authKey1을(를) 가질 수 있습니다. 즉, 요청 헤더 이름은 변경되지 않습니다.

예제 API 형식

GET /data?X-Auth-Key1={YOUR_AUTH_KEY1}&X-Auth-Key2={YOUR_AUTH_KEY2}

인증 사양 예

다음은 MailChimp Members 원본을 사용하여 완료된 인증 사양의 예입니다.

예제 인증 사양 보기
  "authSpec": [
    {
      "name": "OAuth2 Refresh Code",
      "type": "OAuth2RefreshCode",
      "spec": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "description": "Define auth params required for connecting to generic rest using oauth2 authorization code.",
        "properties": {
          "authorizationTestUrl": {
            "description": "Authorization test url to validate accessToken.",
            "type": "string"
          },
          "accessToken": {
            "description": "Access Token of mailChimp endpoint.",
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "accessToken"
        ]
      }
    },
    {
      "name": "Basic Authentication",
      "type": "BasicAuthentication",
      "spec": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "description": "defines auth params required for connecting to rest service.",
        "properties": {
          "username": {
            "description": "Username to connect mailChimp endpoint.",
            "type": "string"
          },
          "password": {
            "description": "Password to connect mailChimp endpoint.",
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "username",
          "password"
        ]
      }
    }
  ],

다음 단계

인증 사양을 채워 Experience Platform에 통합할 소스의 소스 사양을 계속 구성할 수 있습니다. 자세한 내용은 소스 사양 구성에 대한 문서를 참조하십시오.

자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.