Nguyên tắc cơ bản về việc chia sẻ thông tin xác thực
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các nhà phát triển web và Android có thể triển khai việc chia sẻ thông tin đăng nhập để đơn giản hoá
trải nghiệm đăng nhập tối ưu cho người dùng.
Việc chia sẻ thông tin đăng nhập liền mạch cho phép Trình quản lý mật khẩu của Google và
các công nghệ nhận dạng khác để chia sẻ thông tin xác thực giữa các trang web và
Ứng dụng Android. Việc này giúp đơn giản hoá trải nghiệm đăng nhập vì Trình quản lý mật khẩu của Google
có thể tự động điền thông tin đăng nhập của người dùng trên trang web và ứng dụng của bạn.
Cách khai báo rằng các ứng dụng và trang web Android của bạn có thể dùng chung thông tin đăng nhập:
- Lưu trữ tệp JSON Đường liên kết đến tài sản kỹ thuật số (DAL) trên các trang web mà bạn khai báo
mối quan hệ chia sẻ thông tin xác thực.
- Khai báo khả năng chia sẻ thông tin đăng nhập của ứng dụng Android trong
tệp kê khai.
Sau khi Google xác minh cấu hình chia sẻ thông tin xác thực mà bạn đã khai báo,
đề xuất thông tin đăng nhập đã lưu cho người dùng, giúp đơn giản hoá các thao tác quản lý tài khoản
(đăng ký, đăng nhập, thay đổi mật khẩu và đặt lại mật khẩu) trên tất cả các tài khoản được liên kết
nền tảng.
Tìm hiểu thêm về cách triển khai tính năng chia sẻ thông tin đăng nhập liền mạch giữa các trang web
và ứng dụng:
Bằng cách làm theo các phương pháp hay nhất về thiết kế web và chia sẻ thông tin đăng nhập liền mạch, bạn
có thể đảm bảo trải nghiệm người dùng liền mạch.
Tài nguyên khác:
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-01 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-01 UTC."],[[["\u003cp\u003eWeb and Android developers can simplify user sign-in by implementing credential sharing, allowing secure sharing of credentials across platforms.\u003c/p\u003e\n"],["\u003cp\u003eCredential sharing is enabled by hosting a Digital Asset Links JSON file on websites and declaring credential sharing capabilities in Android app manifests.\u003c/p\u003e\n"],["\u003cp\u003eGoogle verifies the configuration and then suggests saved credentials, streamlining account management tasks like sign-up, sign-in, and password changes across linked platforms.\u003c/p\u003e\n"]]],[],null,["# Credential sharing fundamentals\n\nWeb and Android developers can implement credential sharing to simplify the\nsign-in experience for their users.\n\nSeamless credential sharing allows [Google Password Manager](https://passwords.google/) and\nother identity technologies to securely share credentials across websites and\nAndroid apps. This simplifies the sign-in experience, as Google Password Manager\ncan automatically populate user credentials on your websites and apps.\n\nTo declare that your Android apps and websites can share credentials:\n\n- Host a [Digital Asset Links (DALs)](https://developers.google.com/digital-asset-links/v1/getting-started) JSON file on your websites declaring a credential sharing relationship.\n- Declare your Android app's ability to share credentials in your app's manifest.\n\nAfter Google verifies your declared credential sharing configuration, it\nsuggests saved credentials to users, streamlining account management tasks\n(sign-up, sign-in, password changes, and password resets) across all linked\nplatforms.\n\nLearn more about how to implement seamless credential sharing across sites\nand apps:\n\n- [Enable seamless credential sharing across Android apps and websites](/identity/credential-sharing/set-up)\n- Examples:\n - [Seamless credential sharing across multiple websites](/identity/credential-sharing/example-multiple-websites)\n - [Seamless credential sharing across multiple websites and Android apps](/identity/credential-sharing/example-multiple-websites-apps)\n\nBy following best practices for web design and seamless credential sharing, you\ncan ensure a seamless user experience.\n\nAdditional resources:\n\n- [Digital Asset Links](https://developers.google.com/digital-asset-links/)\n- [Android Credential Manager API](https://developers.google.com/identity/android-credential-manager)\n- [Sign-in with Google](https://developers.google.com/identity/gsi/web/guides/overview)\n- [Identity \\| web.dev](https://web.dev/explore/identity)"]]