パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.11.0

passkeys_platform_interface

passkeys プラグイン用の共通プラットフォームインターフェース。新しいプラットフォームで passkeys をサポートするには、このインターフェースを実装する必要があります。

AndroidiOSLinuxmacOSWebWindows
30日間ダウンロード
115万
いいね数
2
Pub ポイント
150

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

flutter pub add passkeys_platform_interface

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

passkeys_platform_interface パッケージは、複数のプラットフォームにわたってパスキーを実装するための共有プラットフォームインターフェースを提供します。Android、iOS、Linux、macOS、Web、Windowsでパスキー機能を有効にするために、プラットフォーム固有のプラグインが実装しなければならないコアAPI契約を定義しています。この抽象化により、一貫した動作が保証され、広範なパスキーエコシステムとの統合が容易になります。新しいプラットフォームへの対応を拡張する開発者は、このインターフェースを実装することで互換性を維持し、統一された認証ワークフローを活用できます。

用途

  • クロスプラットフォームパスキー認証の有効化
  • 新しいオペレーティングシステム用のパスキーを実装する
  • プラットフォーム固有のパスキー・バックエンドの作成
  • 生体認証またはパスワードレスログインの統合
  • セキュアなローカル認証のサポート

主な機能

  • プラットフォーム間で共有されるAPI契約
  • 新しいプラットフォーム実装に対応可能
  • 標準化されたパスキー操作
  • 主要なデスクトップおよびモバイルOSをサポートしています
  • プラグイン相互運用性を考慮して設計

適している対象

  • プラグイン開発者がパスキー対応を追加しています
  • クロスプラットフォーム認証ライブラリ
  • パスワードレスログインシステムを構築しているチーム
  • セキュリティを重視したアプリ開発者
  • 認証ツールのオープンソース貢献者

注意事項

  • 各ターゲットプラットフォームでの実装が必要
  • 下位のOSのパスキー対応に依存する
  • 追加のネイティブコード設定が必要になる場合があります
  • エンドユーザー向けアプリケーションでの直接利用を想定していません
  • Corbadoのパスキー・プラグインエコシステムと整合性を保つ必要があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

GitHub Repo Cover

Flutter passkeys

Flutter packages to enable passkey authentication (based on WebAuthn / FIDO2).

Android iOS Linux macOS Web Windows
Support :white_check_mark: :white_check_mark: :x: :white_check_mark: :white_check_mark: :white_check_mark:
passkey-signup

Current list of packages

1. Passkeys
Description

A Flutter package that enables simple passkey authentication. Currently Android, iOS, macOS, Web and Windows are supported.

Features
  • sign up and login users with passkeys
  • connect your own relying party server or use pre-implemented ones

Read more

2. Corbado Auth
Description

A Flutter package that builds on the passkeys package. It adds additional functionalities to make it simpler to use passkey authentication in your own Flutter app.

integration-guides

Features
  • sign up and login users with passkeys
  • connect Corbado as pre-implemented relying party server
  • keep users logged in even if they close the app (automatic session refresh)

Read more

3. Corbado Auth Firebase

A Flutter package that builds on the corbado_auth and the passkeys package. It helps you to integrate passkey authentication into your Flutter app that uses Firebase as a backend.

Note: This package is currently broken and will be fixed in the future. There is no specific ETA on when the fix will be available.

Features
  • allow new users to sign up and log in using passkeys
  • allow existing users (that you created with Firebase authentication) to setup a passkey and then log in with it
  • email OTP codes as fallback mechanism for situations when passkeys can not be used (e.g. when a user logs in to a device where none of his passkeys is available)

Read more

4. Supabase

The passkeys package can be used as the platform authenticator for supabase_flutter. Supabase Auth acts as the relying party server, while passkeys handles the native passkey prompts on iOS, Android, macOS, Windows and Web.

It requires supabase_flutter 2.15.0 or later and passkeys 2.21.0 or later.

Setup

Add both packages to your pubspec.yaml:

dependencies:
  supabase_flutter: ^2.15.0
  passkeys: ^2.21.0

Initialize Supabase as usual and create a PasskeyAuthenticator that you pass to the passkey methods:

import 'package:passkeys/authenticator.dart';
import 'package:supabase_flutter/supabase_flutter.dart';

await Supabase.initialize(
  url: supabaseUrl,
  anonKey: supabaseAnonKey,
);

final supabase = Supabase.instance.client;
final authenticator = PasskeyAuthenticator();
Registering a passkey

Registering a passkey requires a signed in (non-anonymous) user. It adds a passkey to the current account:

try {
  final passkey = await supabase.auth.registerPasskey(authenticator);
  print('Registered passkey ${passkey.id}');
} on AuthException catch (e) {
  print(e);
}
Signing in with a passkey
try {
  final res = await supabase.auth.signInWithPasskey(authenticator);
  print('Signed in as ${res.user?.email}');
} on AuthException catch (e) {
  print(e);
}

For custom flows there is also a two-step API under the supabase.auth.passkey namespace (startRegistration/verifyRegistration and startAuthentication/verifyAuthentication), as well as methods to list, rename and delete passkeys.

For the full guide and configuration steps, see the Supabase passkeys documentation.

Contributing

We're happy to receive your pull requests. For major changes, please open an issue first to discuss what you would like to change.

Support

If you have questions, feedback or wishes regarding features, please reach out to us via [email](mailto:contact@corbado.com) or join our passkeys community on Slack.

License

BSD-3-clause

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。

ランキング