نقل البيانات من ميزة "تسجيل الدخول بحساب Google" القديمة إلى "مدير بيانات الاعتماد" وAuthorizeClient
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يمكنك نقل بياناتك من Google Sign-In for Android إلى أداة "إدارة بيانات الاعتماد" في Android ل
تبسيط تجربة المصادقة في تطبيقك وجعل
ممارسات التطوير متوافقة مع المستقبل. تم إيقاف ميزة "تسجيل الدخول باستخدام حساب Google" على Android نهائيًا وسيتم
إزالتها من حزمة تطوير البرامج (SDK) للمصادقة ضِمن "خدمات Google Play".
(com.google.android.gms:play-services-auth
) في عام 2025.
بالنسبة إلى المصادقة، على المطوّرين نقل مشاريع Android الخاصة بهم إلى
Credential Manager، الذي يتيح استخدام ميزة OneTap و
عمليات تسجيل الدخول باستخدام حساب Google من خلال الزر بالكامل. يمكنك الاطّلاع على مشاركة المدونة لمعرفة التفاصيل.
بالنسبة إلى إجراءات التفويض التي تتطلّب الوصول إلى بيانات المستخدمين التي تخزّنها Google،
مثل Google Drive، استخدِم AuthorizationClient API.
نقل المصادقة إلى واجهة برمجة التطبيقات Credential Manager API
من خلال واجهة برمجة تطبيقات موحّدة ومبسّطة تتيح استخدام الميزات والممارسات الحديثة مع تحسين تجربة المصادقة للمستخدمين، يقدّم "مدير بيانات الاعتماد" عدة مزايا رئيسية مقارنةً بميزة "تسجيل الدخول باستخدام حساب Google" القديمة لنظام Android:
- أظهرت الإجراءات المبسّطة والمُبسّطة التي تم إنشاؤها باستخدام "مدير بيانات الاعتماد"
انخفاضًا في متوسط مدّة الاشتراك وتسجيل الدخول بنسبة تصل إلى %50.
- توفّر واجهة Credential Manager إمكانية استخدام طُرق متعددة لتسجيل الدخول، بما في ذلك
تسجيل الدخول باستخدام حساب Google ومفاتيح المرور وكلمات المرور.
- Credential Manager هي واجهة برمجة تطبيقات موحّدة واحدة توفّر واجهة مستخدم أكثر اتساقًا على جميع أجهزة Android، وتتوافق مع معايير الأمان المتغيّرة، وتبسّط عملية التطوير.
- يوفّر "مدير بيانات الاعتماد" تجربة مستخدم متّسقة وموحدة على مستوى
جميع طرق المصادقة.
- بدءًا من Android 14، يتيح "مدير بيانات الاعتماد" استخدام مزوّدي كلمات المرور ومفاتيح المرور التابعين لجهات خارجية، ما يسمح للمستخدمين باختيار مزوّد بيانات الاعتماد المفضّل لديهم.
- تتوافق Credential Manager تمامًا مع زر تسجيل الدخول باستخدام حساب Google، ما يتيح للمطوّرين إسقاط هذا الزر مباشرةً في مسارات الموافقة الحالية.
- تتوافق أداة "إدارة بيانات الاعتماد" مع إمكانات OneTap، ما يتيح للمطوّرين توجيه طلبات مباشرة إلى المستخدمين لتسجيل الدخول باستخدام حساباتهم على Google بنقرة واحدة.
لبدء عملية دمج "مدير بيانات الاعتماد"، يُرجى قراءة دليل المطوّر.
اطّلِع على تجربة المستخدم في المصادقة باستخدام مفاتيح المرور لفهم كيفية
تصميم مسارات تحديد الهوية. اطّلِع على دليل دمج Credential Manager
مع ميزة "تسجيل الدخول باستخدام حساب Google" لمعرفة تفاصيل التنفيذ على OneTap أو
زر "تسجيل الدخول باستخدام حساب Google".
نقل بيانات التفويض إلى AuthorizationClient API
على عكس ميزة "تسجيل الدخول باستخدام حساب Google" القديمة، تتوفّر وظيفتا المصادقة والترخيص
الآن كعمليتين منفصلتَين ومتميّزَتين. Credential
Manager هي واجهة برمجة التطبيقات التي تستخدمها للمصادقة على Android. بالنسبة إلى إجراءات
التفويض، مثل الوصول إلى خدمة مثل Google Drive، استخدِم
AuthorizationClient API. يساعدك هذا الفصل في ربط مسارات المستخدمين بأهدافهم، ما يتيح للمستخدمين الاشتراك أو تسجيل الدخول باستخدام حساباتهم على Google،
ويمكنك بشكل منفصل منح أذونات التفويض من حساباتهم على Google عند الحاجة إليها من جانب التطبيق بدلاً من وقت تسجيل الدخول فقط.
لمزيد من المعلومات عن التفويض، يُرجى الاطّلاع على دليل تفويض الوصول إلى بيانات المستخدمين
والاطّلاع على مستندات AuthorizationClient API.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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."]]