في ما يلي بعض إرشادات الأمان والخصوصية للمطوّرين الذين يستخدمون Google Assistant API في مشاريعهم.
واجهة برمجة التطبيقات وتفويض التطبيق
يجب أن يحصل أي تطبيق يستخدم Google Assistant API على بيانات اعتماد
تفويض تحدّد التطبيق لخادم مصادقة Google.
ويتم عادةً تخزين بيانات الاعتماد هذه في ملف client_secret_<client-id>.json تم تنزيله. احرص على تخزين هذا الملف في مكان لا يمكن
لتطبيق سوى الوصول إليه.
قد يطلب تطبيقك من المستخدم منحه إذن الوصول إلى حسابه على Google.
في حال منحه الإذن، يمكن أن يطلب تطبيقك رمز الدخول المميّز لهذا المستخدم. تنتهي صلاحية هذه الرموز المميّزة، ولكن يمكن تحديثها.
تشكّل الرموز المميّزة لإعادة التحميل غير المحمية على الجهاز خطرًا أمنيًا كبيرًا. تأكَّد من أنّ التطبيق:
تخزين الرموز المميّزة لإعادة التحميل في مكان آمن
توفِّر طريقة سهلة لمحو الرموز المميّزة من الجهاز. على سبيل المثال، قدِّم زر "تسجيل الخروج" الذي يمحو الرمز المميّز (إذا كان التطبيق يحتوي على واجهة مستخدم) أو نص برمجي لسطر أوامر يمكن للمستخدم تنفيذه.
يتم إبلاغ المستخدمين بأنّه يمكنهم إلغاء تفويض الوصول إلى حساباتهم على Google. يؤدي هذا إلى إبطال الرمز المميز للتحديث، ولاستخدام التطبيق مرة أخرى، سيحتاج المستخدم إلى إعادة تفويض الوصول.
وعند الانتهاء من استخدام الجهاز بشكل نهائي، يجب محو
جميع الرموز المميّزة منه.
تاريخ التعديل الأخير: 2023-12-02 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2023-12-02 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]