搜尋套件、儲存庫與 APP 分類

套件詳情v5.1.0

credential_manager

憑證管理員外掛程式。提供一鍵登入功能,並將憑證儲存在 Android 的使用者 Google 帳戶中,以及 iOS 的金鑰圈中。

AndroidiOS
近 30 天下載
4130
喜歡數
37
Pub 分數
160

安裝套件

flutter pub add credential_manager

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

credential_manager 套件可透過裝置的原生驗證系統(Android 上的 Google 帳戶與 iOS 上的 Keychain)安全儲存與取得使用者憑證,以實現一鍵登入。它利用平台特定的安全儲存來簡化驗證流程,減少登入時的摩擦。開發人員可整合無縫且安全的登入體驗,而無需手動管理憑證儲存。此外,該套件專為需要快速、安全存取且使用者輸入最少之應用程式所設計。

適用情境

  • 一鍵登入實現
  • 安全憑證存儲
  • 跨平台身分驗證
  • 簡化使用者入門
  • 無密碼登入工作流程

主要特色

  • 與 Google 帳號(Android)整合
  • 使用鑰匙圈(iOS)
  • 安全的憑證管理
  • 一鍵登入支援
  • 平台原生安全

適合對象

  • 需要快速登入的應用
  • 開發人員優先考慮安全
  • 跨平台身分驗證解決方案
  • 使用者友善的入門體驗
  • 注重身份驗證的應用程式

使用建議

  • 需要平台特定的設定
  • 僅限 Android 和 iOS
  • 依賴使用者擁有 Google 帳號(Android)
  • 不適用於網頁或桌面
  • 可能需要額外權限

原始 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。