身份
应用的安全性和功能取决于用户身份管理。这包括验证用户身份(身份验证)、控制对用户数据的访问权限(授权),以及提供顺畅的账号创建流程。
Credential Manager 是各种登录方法(包括通行密钥)的集中管理中心,可帮助用户一键登录您的应用。这样一来,用户无需记住必须使用哪种方法,而只需专注于选择正确的账号。
一键登录
简单的账号创建流程
统一界面
与 Google 密码管理工具集成
通行密钥可改善 Android 设备上的身份验证用户体验
登录可能是导致用户感到困惑和放弃应用的主要原因。
通行密钥可通过 Credential Manager 获取,可简化登录流程并提高安全性,从而改善用户体验;它们可防范钓鱼式攻击,且无法重复使用。用户可以使用指纹、人脸识别或本地 PIN 码解锁设备来登录,而无需记住和输入密码。

快速创建账号
在创建账号时集成“使用 Google 账号登录”功能,从而简化注册流程并降低放弃率。
此一键式注册选项可利用熟悉的用户凭据,最大限度地减少摩擦并改善用户体验。
在注册时优先显示“使用 Google 账号登录”选项,可显著改善应用的初始配置流程和用户满意度。
一键登录
Credential Manager 是一种 Jetpack API,它在单个 API 中支持多种登录方法,例如用户名和密码、通行密钥和联合登录(如“使用 Google 账号登录”),从而为开发者简化了集成工作。
用户只需点击一下即可登录您的应用,而无需担心选择正确的选项。Credential Manager 可以在各种身份验证方法之间统一登录界面,这样无论用户选择何种方法,都可以更清晰、更轻松地登录应用。
身份验证使用入门
将凭据管理器与“使用 Google 账号登录”集成
将 Firebase Authentication 与“使用 Google 账号登录”集成
最新资讯和视频
Timeline update: third-party autofill services support on Chrome on Android
Updated 2025年2月7日
In October 2024, we announced that Chrome 131 will allow third-party autofill services on Android (like password managers) to natively autofill forms on websites. Reflecting on feedback from autofill service developers, we've decided to shift the
Welcome to Spotlight Week: Passkeys
Updated 2024年11月18日
We're kicking off Spotlight Week with a deep dive into passkeys! This week we're partnering with the Chrome team to feature exciting announcements, insightful resources, and expert guidance on how to build seamless and secure authentication
Passkeys Spotlight Week begins November 18th
Updated 2024年11月11日
Tired of headaches with passwords? Ready for a future where online authentication is both faster and more secure? Then mark your calendars for Passkeys Week, November 18-22! Passkeys are an easier and more secure alternative to passwords, and are
Chrome on Android to support third-party autofill services natively
Updated 2024年10月16日
Chrome on Android will soon allow third-party autofill services (like password managers) to natively autofill forms on websites. Developers of these services need to tell their users to toggle a setting in Chrome to continue using their service with
Attestation format change for the Android FIDO2 API
Updated 2024年9月24日
In 2019 we introduced a FIDO2 API, adopted by many leading developers, which allows users to generate an attested, device-bound FIDO2 credential on Android devices. Since this launch, Android has generated an attestation statement based on the
Passkeys and identity best practices
Updated 2024年5月16日
Passkeys are the modern standard for enabling seamless, secure, and trustworthy sign-in user flows. Discover how to accelerate your authentication and account creation experiences with passkeys and Sign in with Google through Credential Manager.
Updates to Google Identity Services (GIS) and migration to the Credential Manager API
Updated 2023年10月26日
At Google, we are dedicated to improving the sign in experience across platforms for developers and users. For Android developers, we recently announced the public availability of Credential Manager as the future of authentication on Android.
Simple and secure sign-in on Android with Credential Manager and passkeys
Updated 2023年10月25日
We are excited to announce that the public release of Credential Manager will be available starting on November 1st. Credential Manager brings the future of authentication to Android, simplifying how users sign in to their apps and websites, and at
Android Developer Story: KAYAK reduced sign-in time by 50% and improved security with passkeys
Updated 2023年10月24日
KAYAK is one of the world's leading travel search engines that helps users find the best deals on flights, hotels, and rental cars. In 2023, KAYAK integrated passkeys - a new type of passwordless authentication - into its Android and web apps. As a
从旧版 API 迁移到 Credential Manager
从旧版 Google 登录迁移
Google 登录(适用于 Android)现已弃用,并计划于 2025 年移除。改用 Credential Manager 可提供更顺畅的用户体验,并确保您的应用保持最新状态。
Credential Manager 侧重于注册和登录。如需授权,请使用 AuthorizationClient 针对 Google 账号(例如云端硬盘、日历或 Google 相册)发出精细的授权请求。