본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

JWE 복호화 정책 구성 참조

원문 보기 위키 갱신

JWE 복호화 정책 구성 참조 (JWE Decrypt Policy Configuration Reference)

이 문서는 Kong의 JWE 복호화 정책에서 사용하는 구성 옵션을 JSON 스키마 형태로 정리해 줘요. 복호화에 사용할 키 셋을 지정하는 key_sets부터 토큰을 찾을 헤더와 복호화 결과를 담아 전달할 헤더 이름 같은 설정을 하나씩 살펴봐요. 요청에 토큰이 없을 때 오류를 발생시킬지 결정하는 strict 옵션의 기본 동작도 함께 확인할 수 있어요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "key_sets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Denote the name or names of all Key Sets that should be inspected when trying to find a suitable key to decrypt the JWE token."
        },
        "strict": {
          "type": "boolean",
          "description": "Defines how the policy behaves in cases where no token was found in the request. When using `strict` mode, the request requires a token to be present and subsequently raise an error if none could be found.",
          "default": true
        },
        "lookup_header_name": {
          "type": "string",
          "description": "The name of the header to look for the JWE token.",
          "default": "Authorization"
        },
        "forward_header_name": {
          "type": "string",
          "description": "The name of the header that is used to set the decrypted value.",
          "default": "Authorization"
        }
      },
      "required": [
        "key_sets"
      ]
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.