Migrate from legacy Google Sign-In to Credential Manager and AuthorizationClient
Stay organized with collections
Save and categorize content based on your preferences.
Migrate from Google Sign-In for Android to Android Credential Manager to
streamline your app's authentication experience and future-proof your
development practices. Google Sign-In for Android is deprecated and will be
removed from the Google Play Services Auth SDK.
(com.google.android.gms:play-services-auth
) in 2025.
For authentication, developers should migrate their Android projects to
Credential Manager, which fully supports One Tap and
button flows for Sign in with Google. See our blog post for details.
For authorization actions that need access to user data stored by Google
such as Google Drive, use the AuthorizationClient API.
Migrate authentication to the Credential Manager API
With a streamlined, unified API that enables support for modern features and
practices while improving the authentication experience for your users,
Credential Manager offers several key advantages over legacy Google Sign-In for
Android:
- Simplified and streamlined flows built with Credential Manager have been shown
to reduce average sign-up and sign-in times by up to 50%.
- Credential Manager integrates support for multiple sign-in methods, including
Sign in with Google, passkeys and passwords.
- 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.
- Credential Manager provides a consistent, unified user experience across
all authentication methods.
- Starting with Android 14, Credential Manager supports third-party password and
passkey providers, allowing users to select their preferred credential
provider.
- Credential Manager fully supports the Sign in with Google button, so
developers can drop this directly into existing flows.
- Credential Manager supports One Tap capabilities, so developers can directly
prompt users to sign in with their Google Account with a single tap.
To begin your Credential Manager integration, read the developer guide.
Read about authentication user experience with passkeys to understand how
your identity flows should be designed. Read the Integrate Credential Manager
with Sign in with Google guide for implementation details on One Tap or the
Sign in with Google button.
Migrate authorization to the AuthorizationClient API
In contrast with legacy Google Sign-In, the authentication and authorization
functions are now available as two separate and distinct flows. Credential
Manager is the API you use for authentication on Android. For
authorization actions, such as accessing a service like Google Drive, use
the AuthorizationClient API. This separation helps you map user flows to user
intent, so that your users can sign up or sign in with their Google Accounts,
and you can separately provide authorization permissions from their Google
Account when they are needed by the application as opposed to login time alone.
To learn more about authorization, read the Authorize Access to User Data
guide, and check out the AuthorizationClient API documentation.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-04 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."]]