Projelerinde Google Assistant API'yi kullanan geliştiriciler için bazı güvenlik ve gizlilik yönergelerini aşağıda bulabilirsiniz.
API ve uygulama yetkilendirmesi
Google Asistan API'sini kullanan tüm uygulamalar, uygulamayı Google'ın kimlik doğrulama sunucusuna tanımlayan yetkilendirme kimlik bilgilerine sahip olmalıdır.
Genellikle bu kimlik bilgileri indirilen bir client_secret_<client-id>.json dosyasında depolanır. Bu dosyayı yalnızca uygulamanızın erişebileceği bir konumda depoladığınızdan emin olun.
Uygulamanız, kullanıcıdan Google hesabına erişim izni vermesini isteyebilir.
Verilirse, uygulamanız bu kullanıcı için bir erişim jetonu isteyebilir. Bu jetonların süresi dolar ancak yenilenebilir.
Bir cihazdaki korumasız yenileme jetonları önemli bir güvenlik riski oluşturur. Başvurunuzun aşağıdaki koşulları sağladığından emin olun:
Yenileme jetonlarını güvenli bir yerde depolar.
Jetonları cihazdan temizlemek için kolay bir yol sağlar. Örneğin, bir jetonu temizleyen bir "Oturumu kapat" düğmesi (uygulamanın kullanıcı arayüzü varsa) veya kullanıcının çalıştırabileceği bir komut satırı komut dosyası sağlayın.
Kullanıcıları, Google hesaplarına erişim yetkisini kaldırabilecekleri konusunda bilgilendirir. Bu, yenileme jetonunu iptal eder. Uygulamayı tekrar kullanabilmek için kullanıcının erişimi yeniden yetkilendirmesi gerekir.
Cihazla işiniz kalıcı olarak bittiğinde cihazdaki tüm jetonları temizlemeniz gerekir.
[null,null,["Son güncelleme tarihi: 2023-12-02 UTC."],[[["The Google Assistant Library for Python is deprecated; developers should utilize the Google Assistant Service instead."],["Applications using the Google Assistant API require authorization credentials for secure identification, and developers must store these credentials securely."],["Applications should provide a mechanism for users to easily clear stored refresh tokens to enhance security and user privacy."],["Users can deauthorize application access to their Google account, revoking refresh tokens and requiring re-authorization for future use."]]],["The Google Assistant Library for Python is deprecated; use the Google Assistant Service instead. Applications using the Google Assistant API need authorization credentials, typically in a `client_secret_.json` file, which must be stored securely. User-granted access tokens expire but can be refreshed. Refresh tokens should be stored securely, with an easy way for users to clear them, such as a \"Sign out\" button or script, and users can deauthorize access via their Google account settings. Devices should be cleared of all tokens when no longer in use.\n"]]