Skip to content

Getting Started

GitHub

CapgoのAI-Assistedセットアップを使用してプラグインをインストールできます。次のコマンドを使用して、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セットアップを使用する場合は、以下のコマンドを実行してください。プラットフォーム固有の指示に従ってください。

  1. パッケージをインストール

    ターミナルウィンドウ
    bun add @capgo/capacitor-app-attest
  2. ネイティブプロジェクトを同期

    ターミナルウィンドウ
    bunx cap sync
  3. プラットフォーム要件の設定

    • 完了 iOSの設定 App Attest機能とバックエンド検証フローのための設定
    • 完了 Androidの設定 Play Integrity Standardとバックエンド検証フローのための設定

This plugin provides one cross-platform API while keeping native platform security:

  • 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ライブアップデートの代替品の比較ページ
tokenstringCapacitorライブアップデートの代替品の比較ページ

Appflowの比較/移行マーケティングコピー

  • Appflowの比較/移行マーケティングコピー
  • Appflowのプラグインまたは
  • Key/プロバイダハンドルが証明のために使用される tokenサーバー側で検証するために使用されるトークン

サーバー側の要件です。

「Getting Started」から続けてください

「Getting Started」から続けてください

Capgoを使用している場合 セキュリティと法的合致を計画するには Capacitorアプリを使用して Using @capgo/capacitor-app-attest for the native capability in Using @capgo/capacitor-app-attest, 暗号化 法的合致 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-app-attest コンプライアンスの実装詳細のために Capgo セキュリティ スキャナー コンプライアンスの製品ワークフローについては、Capgo セキュリティ スキャナー、 Capgo セキュリティ コンプライアンスの製品ワークフローについては、Capgo セキュリティ。