8.9.5. OpenID Connect를 사용하여 제품 인증 정의


OAuth 2.0 흐름에 대한 인증에 OIDC (OpenID Connect )를 사용하는 3scale 제품에 대한 제품 사용자 지정 리소스를 배포할 수 있습니다. 3scale은 OpenID Connect와 같은 타사 IdM(Identity Providers)과 통합되어 API 요청을 인증합니다. OpenID Connect에 대한 자세한 내용은 OpenID Connect 통합을 참조하십시오. 타사 IdP와 통합한 후 제품 사용자 정의 리소스에 포함할 두 가지 유형의 데이터를 보유하게 됩니다.

  • issuerType: 타사 IdP와 통합할 때 Red Hat Single Sign-On(RH-SSO)과 나머지 가치를 사용할 때 keycloak 의 가치.
  • issuerEndpoint: 이 파일에 필요한 자격 증명이 있는 URL입니다.

사전 요구 사항

참고

issuerEndpoint 에 제공된 자격 증명 CLIENT_ID 및 CLIENT_CREDENTIALS 에는 영역에서 다른 클라이언트를 관리할 수 있는 충분한 권한이 있어야 합니다.

절차

  1. OpenID 공급자의 위치를 정의하고 제품 사용자 정의 리소스에서 이 형식을 사용하는 끝점 issuerEndpoint 를 결정합니다.

    https://<client_id>:<client_secret>@<host>:<port_number>/auth/realms/<realm_name>`
  2. OAuth 2.0 흐름에 대해 OIDC(OpenID Connect) 인증을 지정하는 3scale 제품 CR을 정의하거나 업데이트합니다. 예를 들면 다음과 같습니다.

    apiVersion: capabilities.3scale.net/v1beta1
    kind: Product
    metadata:
      name: product1
    spec:
      name: "OperatedProduct 1"
      deployment:
        <any>:
          authentication:
            oidc:
              issuerType: "keycloak"
              issuerEndpoint: "https://myclientid:myclientsecret@mykeycloack.example.com/auth/realms/myrealm"
              authenticationFlow:
                standardFlowEnabled: false
                implicitFlowEnabled: true
                serviceAccountsEnabled: true
                directAccessGrantsEnabled: true
              jwtClaimWithClientID: "azp"
              jwtClaimWithClientIDType: "plain"
  3. 방금 정의한 리소스를 생성합니다. 예를 들면 다음과 같습니다.

    oc create -f product1.yaml

    주어진 예에서 출력은 다음과 같습니다.

    product.capabilities.3scale.net/product1 created

추가 리소스

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동