קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי להגן על נתוני המשתמשים ולשלוט בגישה לתכונות ולנתונים באפליקציה, וכך לשמור על האפליקציה, הנתונים והמשתמשים, כדאי להוסיף לאפליקציית Android תהליך עבודה לכניסה לחשבון.
הגנה על נתוני משתמשים. אימות מגן על נתוני המשתמשים באפליקציה מפני גישה לא מורשית. הדרישה מהמשתמשים להתחבר לחשבון עוזרת להבטיח שהם יוכלו לפתוח רק את המידע שהם מורשים לראות.
עזרה במניעת הונאה. אימות בשילוב עם אימות זהות מקשה על תוקפים ליצור חשבונות מזויפים או לקבל גישה לא מורשית לחשבונות קיימים.
שיפור חוויית המשתמש. תהליך עבודה יעיל לאימות מפשט את ההרשמה והכניסה של המשתמשים ומאפשר להם לגשת לנתונים ולשירותים.
ציות לתקנות. תהליך עבודה של כניסה לחשבון עומד בדרישות של תקנות שמחייבות אימות כדי להגן על נתונים.
אימות
ברוב הפרויקטים ל-Android, כדי להוסיף אימות לאפליקציה, צריך להשתמש ב-Credential Manager. מנהל פרטי הכניסה הוא ספריית Jetpack מודרנית שמאפשרת לשלב באפליקציה את רוב שיטות האימות העיקריות, כולל מפתחות גישה, סיסמאות ופתרונות מאוחדים כמו כניסה באמצעות חשבון Google. היתרונות של Credential Manager בהשוואה לממשקי API קודמים לאימות, כמו One Tap:
שילוב פשוט יותר: Credential Manager מאפשר להטמיע את רוב אפשרויות האימות העיקריות באמצעות API יחיד ומאוחד.
חוויית משתמש משופרת: ממשק הכניסה המאוחד של Credential Manager מספק למשתמשים חוויה ברורה, מוכרת ועקבית, מפחית את נטישת המשתמשים ומשפר את מהירות ההרשמה והכניסה.
הרשמה וכניסה באמצעות חשבון Google בהקשה אחת: אפשר להגדיר את Credential Manager כך שיציג למשתמשים הנחיה ליצור חשבון Google או להיכנס לחשבון Google באמצעות תיבת דו-שיח שמוצגת בתוך התוכן של האפליקציה, כך שהם לא יועברו למסך הרשמה ויאבדו את ההקשר. הפחתת החיכוך בתהליך ההרשמה או הכניסה משפרת את שיעורי ההצלחה של המשתמשים בתהליך ההרשמה או הכניסה לאפליקציה.
אבטחה משופרת: המעבר מסיסמאות לאימות ללא סיסמה עוזר לצמצם את וקטורי התקיפה, מפשט את תהליך צירוף המשתמשים ומשפר את האבטחה של האפליקציה. מנהל פרטי הכניסה מאפשר תמיכה באימות ללא סיסמה באמצעות מפתחות גישה.
גמישות משופרת: Credential Manager משתלב עם ספקי אימות קיימים, או שאתם יכולים לפתח תהליך אימות משלכם.
Credential Manager מציג באופן אוטומטי גיליון תחתון מאוחד לשיטות אימות מודרניות, והוא מהווה תחליף מודרני להטמעות אימות קיימות, כולל Smart Lock לסיסמאות ב-Android ו-One Tap.
מידע נוסף על הטמעה של אימות באפליקציית Android באמצעות Credential Manager
אפליקציות מסוימות, כמו מנהלי סיסמאות, ממלאות את התצוגות באפליקציות אחרות בנתונים שהמשתמש מספק. אפליקציות שממלאות תצוגות של אפליקציות אחרות נקראות שירותי מילוי אוטומטי. מסגרת המילוי האוטומטי מנהלת את התקשורת בין אפליקציה לבין שירות מילוי אוטומטי, ועוזרת לשפר את חוויית המשתמש על ידי קיצור הזמן שנדרש למילוי שדות וצמצום שגיאות בהזנת נתונים. מכיוון שהמילוי האוטומטי תומך במנהלי סיסמאות, אפשר לעודד את המשתמשים לבחור פרטי כניסה חזקים יותר, כמו מפתחות גישה או סיסמאות ייחודיות שנוצרו על ידי מכונה, שאפשר לאחסן ולאחזר בצורה מאובטחת ועם פחות חיכוך.
כדי לחזק את האבטחה, כדאי לשלב אימות ביומטרי באפליקציה.
אימות ביומטרי, במיוחד כחלק מתוכניות אימות רב-שלבי, מפחית את הסיכון להונאה בכך שהוא מוודא שהאישורים אותנטיים ושייכים למשתמש המיועד. אימות ביומטרי יכול לשפר את חוויית המשתמש בדרכים הבאות:
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-01-02 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-01-02 (שעון UTC)."],[],[],null,["# Add a sign-in workflow to your Android app to protect user data and control\naccess to app features and data, helping to keep your app, your data, and your\nusers safe.\n\n- **Protect user data**. Authentication protects your app's user data from unauthorized access. By requiring users to sign in, you can help ensure your users unlock only the information they're entitled to.\n- **Help prevent fraud**. Authentication coupled with identity verification makes it more difficult for an attacker to create fraudulent accounts or gain unauthorized access to existing accounts.\n- **Improve user experience**. A streamlined authentication workflow reduces complexity for your users to sign up and sign in to access their data and services.\n- **Comply with regulations**. A sign-in workflow complies with regulations that require authentication to protect data.\n\nAuthentication\n--------------\n\nTo add authentication to your app, most Android projects should use [Credential\nManager](/training/sign-in/passkeys). Credential Manager is a modern Jetpack library that lets you\nintegrate most major authentication methods into your app, including passkeys,\npasswords, and federated solutions like Sign in with Google. The benefits of\nCredential Manager over legacy authentication APIs such as One Tap include:\n\n- **Simpler integration**: Credential Manager lets you implement most major authentication options with a single, unified API.\n- **Improved user experience**: Credential Manager's unified sign-in interface gives your users a clear, familiar, and consistent experience, reduces churn, and improves registration and sign-in speeds.\n- **Single-tap Google sign in and sign up**: Credential Manager can be configured to prompt your users to create or sign in to a Google Account with a dialog that's inline with your app's content, so they're never taken out of context by a sign-up screen. Reduced sign-up or login friction improves success rates for your users as they register or log into your app.\n- **Enhanced security** : Migrating from passwords to passwordless authentication helps reduce attack vectors, simplifies user onboarding, and enhances your app's security. Credential Manager enables support for passwordless authentication using [passkeys](/design/ui/mobile/guides/patterns/passkeys).\n- **Improved flexibility**: Credential Manager integrates with existing authentication providers, or you can develop your own authentication process.\n\nCredential Manager automatically displays a unified bottom sheet for modern\nauthentication methods, and is the modern replacement for existing\nauthentication implementations, including [Smart Lock for Passwords on\nAndroid](/training/sign-in/smart-lock-migration), and [One Tap](https://developers.google.com/identity/one-tap/android/overview).\n\n\u003cbr /\u003e\n\n| \u003cbr /\u003e\n|\n| **Note:** Sign in with Google can be called as an option in the following\n| ways:\n|\n| 1. As a Credential Manager bottom sheet that automatically appears when the sign-in screen loads,\n| 2. As a distinct button that is selected by users on your sign-in screen should they actively choose to Sign in with Google.\n|\n| Don't call the Credential Manager\n| bottom sheet from the Sign in with Google button. Read\n| [Integrate Credential Manager with Sign in with Google](/training/sign-in/credential-manager) to learn more.\n|\n| \u003cbr /\u003e\n|\n\u003cbr /\u003e\n\nLearn more about how to build authentication in your Android app with Credential\nManager:\n\n- [Sign in your user with Credential Manager](/training/sign-in/passkeys)\n- [User authentication with passkeys user experience guide](/design/ui/mobile/guides/patterns/passkeys)\n- [Integrate Credential Manager with Sign in with Google](/training/sign-in/credential-manager)\n- [Integrate Credential Manager with WebView](/training/sign-in/credential-manager-webview)\n- [Passkeys on Android learning pathway](/courses/pathways/passkeys)\n\nLearn how to migrate your current authentication flows to Credential Manager:\n\n- [Upgrade from legacy Sign in with Google button flows](/training/sign-in/credential-manager#siwg-button)\n- [Migrate from Smart Lock for Passwords to Credential Manager](/training/sign-in/smart-lock-migration)\n- [Migrate from FIDO2 to Credential Manager](/training/sign-in/fido2-migration)\n\nLearn how to streamline your existing identity and authentication APIs to\nsupport passkeys and improved usability with the Credential Manager API:\n\n- [Integrate Credential Manager with your credential provider solution](/training/sign-in/credential-provider)\n- [Make Credential Manager calls on behalf of other parties for privileged\n apps](/training/sign-in/privileged-apps)\n\nAutofill\n--------\n\nSome apps, such as password managers, fill out the views in other apps with\ndata provided by the user. Apps that fill out other apps' views are called\nautofill services. The autofill framework manages the communication between an\napp and an autofill service and helps improve the user experience by saving\ntime spent filling in fields and minimizing user input errors. Since autofill\nsupports password managers, users can be encouraged to select stronger\ncredentials such as passkeys or unique, machine-generated passwords that can be\nstored and retrieved securely and with less friction.\n\nLearn more about Android's autofill framework:\n\n- [About autofill](/guide/topics/text/autofill)\n- [Optimize your app for autofill](/guide/topics/text/autofill-optimize)\n- [Build autofill services](/guide/topics/text/autofill-services)\n- [Integrate autofill with keyboards](/guide/topics/text/ime-autofill)\n\nBiometrics\n----------\n\nIntegrate biometric authentication into your app to further strengthen security.\nBiometric authentication, especially as part of multi-factor authentication\nschemes, reduces fraud exposure by ensuring the credential is authentic and\nverifiably belongs to the intended user. Biometric authentication can improve\nthe user experience in the following ways:\n\n- Enables faster logins\n- Provides opportunities for reduced-friction credential verification\n- Reduces password usage\n- Potentially aids with regulatory compliance.\n\nLearn more about [how to implement biometric authentication](/training/sign-in/biometric-auth)."]]