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

パッケージ詳細v5.1.0

credential_manager

資格情報マネージャープラグイン。ワンタップログイン機能を提供し、AndroidではユーザーのGoogleアカウントに、iOSではKeychainに資格情報を保存します。

AndroidiOS
30日間ダウンロード
4130
いいね数
37
Pub ポイント
160

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

flutter pub add credential_manager

パッケージ概要

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

credential_manager パッケージは、Android の Google アカウントおよび iOS の Keychain を使用して、デバイスのネイティブ認証システムを通じてユーザー資格情報を安全に保存・取得することで、ワンタップログインを可能にします。プラットフォーム固有の安全なストレージを利用することで認証フローを簡素化し、ログイン時の煩わしさを軽減します。開発者は、資格情報のストレージを手動で管理することなく、スムーズで安全なサインイン体験を統合できます。このプラグインは、最小限のユーザー入力で迅速かつ安全なアクセスが必要なアプリ向けに設計されています。

用途

  • ワンタップログインの実装
  • セキュアな資格情報の保存
  • クロスプラットフォーム認証
  • 簡素なユーザーのオンボーディング
  • パスワードレスログインワークフロー

主な機能

  • Googleアカウント(Android)と連携
  • Keychain(iOS)を使用
  • セキュアな資格情報管理
  • ワンタップログインサポート
  • プラットフォームネイティブなセキュリティ

適している対象

  • 迅速なログインが必要なアプリ
  • セキュリティを最優先とする開発者
  • クロスプラットフォーム認証ソリューション
  • ユーザーに優しいオンボーディング
  • 認証を重視したアプリ

注意事項

  • プラットフォーム固有のセットアップが必要です
  • Android および iOS に限定
  • ユーザーがGoogleアカウントを持っている必要がある(Android)
  • Webやデスクトップには適していません
  • 追加の権限が必要になる場合があります

元の README

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

Credential Manager

Android iOS Web

Credential Manager is a Jetpack API that supports multiple sign-in methods, such as username and password, passkeys, and federated sign-in solutions (like Sign-in with Google) in a single API, simplifying integration for developers on Android. For iOS, it uses Keychain for storing credentials. On Web, it uses WebAuthn, the Credential Management API, and Google Identity Services (backed by FedCM).

For users, Credential Manager unifies the sign-in interface across authentication methods, making it clearer and easier to sign into apps, regardless of the chosen method.

For iOS, it uses Keychain and Autofill. On Web, see credential_manager_web for setup, including the required <script> tag in web/index.html.

For more information, please refer to the official documentation.

Getting Started

Add the dependency to your pubspec.yaml file:

credential_manager: <latest_version>

Or run:

flutter pub add credential_manager

Documentation

For comprehensive guides and detailed documentation, please visit our Documentation Page. Here you will find everything you need to get started, including API references, usage examples, and best practices for integrating Credential Manager into your application.

Credential Flow Previews

Android Credential Manager iOS Passkey Sheet
Credential Manager UI Apple Passkey UI

Heads-up: The screenshots above come directly from the official Android and Apple design resources. The bundled example application recreates similar flows but may look slightly different depending on your theme, device, or customizations.

Development Workflow

We rely on pre-commit to guarantee formatting and analyzer checks run before every commit.

pip3 install --user pre-commit   # first time only
python3 -m pre_commit install    # installs the git hook
# (optional) run on the entire repo once
python3 -m pre_commit run --all-files

The configured hooks will:

  • Format every staged Dart file using dart format.
  • Format docSite sources with Prettier.
  • Run flutter analyze across all packages (including the example app); commits are blocked if any analyzer error occurs.

Support the Project

If you find this library useful and would like to support its development, consider buying me a coffee:

☕ Buy Me a Coffee

Looking for Maintainers

We are looking for maintainers to help us keep this library up-to-date and implement new features. If you are interested in contributing, please reach out via GitHub or open an issue. Your help would be greatly appreciated!

Contributors

Thanks to all the contributors who have helped make this library better!

Contributors

カテゴリー

依存関係

依存関係一覧 4 件

  • credential_manager_android^4.1.0
  • credential_manager_ios^4.0.0
  • credential_manager_platform_interface^4.0.0
  • credential_manager_web^2.3.0

ソースリポジトリ

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

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