Cloud Firestore 提供強大的存取權管理和驗證功能,視使用的用戶端程式庫而定,可透過兩種不同方法進行。
如要使用行動和網路用戶端程式庫,請使用 Firebase Authentication 和 Cloud Firestore Security Rules 處理無伺服器驗證、授權和資料驗證。瞭解如何使用 Cloud Firestore Security Rules 保護 Android、Apple 和網頁用戶端程式庫的資料。
使用 App Check,確保只有您的應用程式可以存取 Cloud Firestore 資料。
如為伺服器用戶端程式庫,請使用 Identity and Access Management (IAM) 管理資料庫存取權。瞭解如何使用 IAM,保護 Java、Python、Node.js 和 Go 用戶端程式庫的資料。