Getting Started
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-app-attest`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/app-attest/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. Capgo 스킬을 AI 도구에 추가하려면 다음 명령어를 사용하세요:
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을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
-
패키지를 설치
터미널 창 bun add @capgo/capacitor-app-attest -
자연스러운 프로젝트를 동기화
터미널 창 bunx cap sync -
설정 요구 사항 구성
- 완료 iOS 설정 App Attest 기능과 백엔드 검증 흐름을 위해
- 완료 Android 설정 Play Integrity Standard과 백엔드 검증 흐름을 위해
이 플러그인을 사용하는 이유
이름이 ‘이 플러그인을 사용하는 이유’인 섹션이 플러그인은 한 개의 크로스 플랫폼 API를 제공하면서 native 플랫폼 보안을 유지합니다:
- iOS: Apple App Attest (
DeviceCheck) - Android: Google Play Integrity Standard API
- 사용자 정의 클라이언트 측 암호화 스키마가 없습니다
- 백엔드 검사에 대한 정규화된 출력
사용 방법
사용 방법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() iOS와 Android에서 동일한 키 필드를 반환합니다: createAssertion() 필드
| 타입 | 설명 | __CAPGO_KEEP_0__ |
|---|---|---|
platform | 'ios' | 'android' | 'web' | 원본 플랫폼이 토큰을 생성했습니다. |
format | AttestationFormat | apple-app-attest 또는 google-play-integrity-standard |
keyId | string | Capacitor live-update 대안 비교 페이지에서 사용되는 더 긴 Capgo UI 문자열의 HTML 텍스트 프래그먼트. |
token | string | Capacitor live-update 대안 비교 페이지에서 사용되는 더 긴 Capgo UI 문자열의 HTML 텍스트 프래그먼트. |
Capawesome 비교 페이지에서 사용되는 더 긴 Capgo UI 문자열의 HTML 텍스트 프래그먼트.
Capgo의 컨설팅 서비스 페이지에서 사용되는 더 긴 Capgo UI 문자열의 HTML 텍스트 프래그먼트.Appflow 비교/이동 마케팅 복사본.
- Appflow 플러그인 또는
- 인증을 위한 키/제공자 핸들
- 서버에서 확인하는 토큰
token서버 요구 사항
서버 요구 사항
시작하기에서 계속하기
시작하기에서 계속하기Capgo를 사용 중이라면 시작하기 Capgo를 사용하여 보안 및 규정 준수 계획을 수립하고 Capgo를 사용하여 @capgo/capacitor-app-attest Capgo를 사용하여 @capgo/capacitor-app-attest Capgo를 사용하여 암호화 Capgo를 사용하여 암호화 Capgo를 사용하여 규정 준수 구현 세부 사항에 대한 Compliance에 대해 Capgo 보안 스캐너 Capgo 보안 스캐너의 제품 워크플로에 대해 Capgo 보안 Capgo 보안의 제품 워크플로에 대해