以前の Google ログインから Credential Manager と AuthorizationClient に移行する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android 向け Google ログインから Android 認証情報マネージャーに移行すると、アプリの認証エクスペリエンスを効率化し、開発手法を将来にわたって活用できます。Android 向け Google ログインは非推奨となり、Google Play 開発者サービス Auth SDK から削除されます。(com.google.android.gms:play-services-auth
)に移行します。
認証については、デベロッパーは Android プロジェクトを 認証情報マネージャーに移行する必要があります。認証情報マネージャーは、「Google でログイン」のワンタップ フローやボタンフローを完全にサポートしています。詳しくは、ブログ投稿をご覧ください。
Google ドライブなど、Google によって保存されているユーザーデータへのアクセスが必要な認可アクションの場合は、AuthorizationClient API を使用します。
認証を Credential Manager API に移行する
認証情報マネージャーは、最新の機能とプラクティスをサポートすると同時に、ユーザーの認証エクスペリエンスを改善する、合理化された統合 API を備えています。認証情報マネージャーには、従来の Android 向け Google ログインよりも優れたいくつかの重要な利点があります。
- 認証情報マネージャーで構築された簡素化されたフローにより、平均の登録時間とログイン時間が最大 50% 短縮されることが実証されています。
- 認証情報マネージャーには、Google でログイン、パスキー、パスワードなど、複数のログイン方法のサポートが統合されています。
- 認証情報マネージャーは、Android デバイス間でより一貫性のあるユーザー インターフェースを提供し、進化するセキュリティ標準に準拠し、開発プロセスを簡素化する単一の統合 API です。
- 認証情報マネージャーは、すべての認証方法で一貫性のある統合されたユーザー エクスペリエンスを実現します。
- Android 14 以降、認証情報マネージャーはサードパーティのパスワードおよびパスキー プロバイダをサポートしているため、ユーザーは任意の認証情報プロバイダを選択できます。
- 認証情報マネージャーは [Google でログイン] ボタンを完全にサポートしているため、デベロッパーは既存のフローに直接追加できます。
- 認証情報マネージャーはワンタップ機能をサポートしているため、デベロッパーは 1 回タップするだけで Google アカウントでログインするようユーザーに直接プロンプトを表示できます。
認証情報マネージャーの統合を開始するには、デベロッパー ガイドをご覧ください。パスキーによる認証のユーザー エクスペリエンスについて読んで、ID フローの設計方法をご確認ください。ワンタップまたは「Google でログイン」ボタンの実装の詳細については、認証情報マネージャーを「Google でログイン」と統合するのガイドをご覧ください。
認可を AuthorizationClient API に移行する
従来の Google ログインとは異なり、認証機能と認可機能は、2 つの別個のフローとして使用できるようになりました。認証情報マネージャーは、Android の認証に使用する API です。Google ドライブなどのサービスへのアクセスなど、認可アクションの場合は、AuthorizationClient API を使用します。この分離により、ユーザーフローをユーザーの意図にマッピングできます。これにより、ユーザーは Google アカウントで登録またはログインできます。また、ログイン時だけでなく、アプリケーションで必要になったときに、Google アカウントからの認可権限を別途提供できます。
認可の詳細については、ユーザーデータへのアクセスを許可するガイドと AuthorizationClient API のドキュメントをご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Migrate from legacy Google Sign-In to Credential Manager and AuthorizationClient\n\nMigrate from [Google Sign-In for Android](https://developers.google.com/identity/sign-in/android/start-integrating) to Android Credential Manager to\nstreamline your app's authentication experience and future-proof your\ndevelopment practices. Google Sign-In for Android is deprecated and will be\nremoved from the [Google Play Services Auth SDK](https://maven.google.com/web/index.html?q=play-services-auth#com.google.android.gms:play-services-auth).\n(`com.google.android.gms:play-services-auth`) in 2025.\n\nFor **authentication** , developers should migrate their Android projects to\n[Credential Manager](#authentication), which fully supports One Tap and\nbutton flows for Sign in with Google. See our [blog post](https://android-developers.googleblog.com/2024/09/streamlining-android-authentication-credential-manager-replaces-legacy-apis.html) for details.\n\nFor **authorization** actions that need access to user data stored by Google\nsuch as Google Drive, use the [AuthorizationClient API](#authorization).\n\nMigrate authentication to the Credential Manager API\n----------------------------------------------------\n\nWith a streamlined, unified API that enables support for modern features and\npractices while improving the authentication experience for your users,\nCredential Manager offers several key advantages over legacy Google Sign-In for\nAndroid:\n\n- Simplified and streamlined flows built with Credential Manager have been shown to [reduce average sign-up and sign-in times](https://developers.googleblog.com/2023/10/how-kayak-reduced-sign-in-time-and-improved-security-with-passkeys.html) by up to 50%.\n- Credential Manager integrates support for multiple sign-in methods, including [Sign in with Google](/training/sign-in/credential-manager), [passkeys](https://developers.google.com/identity/passkeys) and passwords.\n- Credential Manager is a single, unified API that provides a more consistent user interface across Android devices, aligns with evolving security standards, and simplifies your development process.\n- Credential Manager provides a consistent, unified [user experience](/design/ui/mobile/guides/patterns/passkeys) across all authentication methods.\n- Starting with Android 14, Credential Manager supports third-party password and passkey providers, allowing users to select their preferred credential provider.\n- Credential Manager fully supports the [Sign in with Google](/training/sign-in/credential-manager) button, so developers can drop this directly into existing flows.\n- Credential Manager supports One Tap capabilities, so developers can directly prompt users to sign in with their Google Account with a single tap.\n\nTo begin your Credential Manager integration, [read the developer guide](/training/sign-in/passkeys).\nRead about [authentication user experience with passkeys](/design/ui/mobile/guides/patterns/passkeys) to understand how\nyour identity flows should be designed. Read the [Integrate Credential Manager\nwith Sign in with Google](/training/sign-in/credential-manager) guide for implementation details on One Tap or the\nSign in with Google button.\n\nMigrate authorization to the AuthorizationClient API\n----------------------------------------------------\n\nIn contrast with legacy Google Sign-In, the authentication and authorization\nfunctions are now available as two separate and distinct flows. Credential\nManager is the API you use for ***authentication*** on Android. For\n***authorization*** actions, such as accessing a service like Google Drive, use\nthe AuthorizationClient API. This separation helps you map user flows to user\nintent, so that your users can sign up or sign in with their Google Accounts,\nand you can separately provide authorization permissions from their Google\nAccount when they are needed by the application as opposed to login time alone.\n\nTo learn more about authorization, read the [Authorize Access to User Data](https://developers.google.com/identity/sign-in/android/authorize-access)\nguide, and check out the [AuthorizationClient API](https://developers.google.com/android/reference/com/google/android/gms/auth/api/identity/AuthorizationClient) documentation."]]