내용으로 건너뛰기

Getting Started

GitHub

설치

설정

AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 다음 명령어를 사용하여 Capgo 기능을 추가하세요:

터미널 창
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

다음 명령어를 사용하세요:

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-app-attest` plugin in my project.

만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:

  1. 패키지 설치

    터미널 창
    bun add @capgo/capacitor-app-attest
  2. 자연 프로젝트 동기화

    터미널 창
    bunx cap sync
  3. 설정

    • 완료 iOS 설정 App Attest 기능과 백엔드 검증 흐름을 위해
    • 완료 Android 설정 Play Integrity Standard과 백엔드 검증 흐름을 위해

이 플러그인은 한 개의 크로스 플랫폼 API를 제공합니다. native 플랫폼 보안을 유지합니다:

  • iOS: Apple App Attest (DeviceCheck)
  • Android: Google Play Integrity Standard API
  • No custom client-side crypto scheme
  • 백엔드 검사에 대한 정규화된 출력

사용 방법

사용 방법
import { AppAttest } from '@capgo/capacitor-app-attest';
const support = await AppAttest.isSupported();
if (!support.isSupported) {
throw new Error(`Attestation not supported on ${support.platform}`);
}
const prepared = await AppAttest.prepare();
const registration = await AppAttest.createAttestation({
keyId: prepared.keyId,
challenge: 'backend-one-time-registration-challenge',
});
const assertion = await AppAttest.createAssertion({
keyId: prepared.keyId,
payload: 'backend-one-time-request-payload',
});
console.log(registration.platform, registration.format, registration.token);
console.log(assertion.platform, assertion.format, assertion.token);

백엔드 검사에 대한 통일된 응답 형태

통일된 응답 형태

createAttestation() 그리고 createAssertion() iOS와 Android에서 동일한 키 필드를 반환:

필드타입설명
platform'ios' | 'android' | 'web'Native platform이 토큰을 생성했습니다.
formatAttestationFormatapple-app-attest 또는 google-play-integrity-standard
keyIdstringCapacitor live-update alternatives 비교 페이지에서 사용되는 HTML 텍스트 조각.
tokenstringCapacitor live-update alternatives 비교 페이지에서 사용되는 HTML 텍스트 조각.

Capawesome 비교 페이지에서 사용되는 HTML 텍스트 조각.

컨설팅 서비스 페이지에서 사용되는 HTML 텍스트 조각.

Appflow 비교 / 마이그레이션 마케팅 복사본.

  • Appflow 플러그인 또는
  • Key/제공자 핸들 사용 attestation
  • 서버에서 토큰을 확인하는 데 사용하는 토큰 token서버 측 요구 사항

서버 측 요구 사항 섹션입니다.

시작하기에서 계속하기

시작하기에서 계속하기

Capgo를 사용 중이라면 Capgo를 사용하여 보안 및 규정 준수 계획을 수립하고 Capgo를 사용하여 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-app-attest Capgo를 사용하여 @capgo/capacitor-app-attest for the native capability in Using @capgo/capacitor-app-attest, Capgo를 사용하여 암호화 규정 준수 규정 준수 구현 세부 사항에 대한 Compliance에 대해 Capgo 보안 스캐너 Capgo 보안 스캐너의 제품 워크플로에 대해 Capgo 보안 Capgo 보안의 제품 워크플로에 대해