Tài liệu này chứa thông tin về việc uỷ quyền và xác thực dành riêng cho API Google Tasks. Trước khi đọc tài liệu này, hãy nhớ đọc thông tin chung về việc xác thực và uỷ quyền của Google Workspace tại bài viết Tìm hiểu về việc xác thực và uỷ quyền.
Để xác định cấp truy cập được cấp cho ứng dụng, bạn cần xác định và khai báo phạm vi uỷ quyền. Phạm vi uỷ quyền là một chuỗi URI OAuth 2.0 chứa tên ứng dụng Google Workspace, loại dữ liệu mà ứng dụng truy cập và cấp truy cập. Phạm vi là các yêu cầu của ứng dụng để xử lý dữ liệu Google Workspace, bao gồm cả dữ liệu Tài khoản Google của người dùng.
Khi cài đặt ứng dụng, người dùng sẽ được yêu cầu xác thực các phạm vi mà ứng dụng sử dụng. Nhìn chung, bạn nên chọn phạm vi tập trung hẹp nhất có thể và tránh yêu cầu các phạm vi mà ứng dụng không yêu cầu. Người dùng sẵn sàng cấp quyền truy cập vào các phạm vi bị giới hạn và được mô tả rõ ràng hơn.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-21 UTC."],[[["This document provides Google Tasks API-specific authorization and authentication details, complementing Google Workspace's general authentication guide."],["Before using the Tasks API, you need to configure OAuth 2.0, including setting up the consent screen, choosing scopes, and registering your app."],["Tasks API utilizes scopes to define the level of access your application has, allowing you to specify whether it can view or fully manage user tasks."],["When selecting scopes, prioritize the most narrowly focused ones to respect user privacy and increase the likelihood of consent."],["Public applications using specific scopes may require verification to ensure user data protection and avoid being flagged as unverified."]]],["To access the Google Tasks API, configure OAuth 2.0, including the consent screen and scope selection. Scopes define the level of data access for your app. Choose the most narrowly focused scope possible. The Tasks API offers two scopes: `https://www.googleapis.com/auth/tasks` for full task management and `https://www.googleapis.com/auth/tasks.readonly` for viewing tasks. Public apps using scopes that access user data must undergo a verification process to avoid being labeled as \"unverified.\"\n"]]