تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توضّح هذه الصفحة بعض المشاكل الشائعة التي قد تواجهها في ما يتعلّق
بالمصادقة والتفويض.
This app isn't verified
إذا كانت شاشة موافقة OAuth تعرض التحذير "لم يتم إثبات ملكية هذا التطبيق"، يعني ذلك أنّ
تطبيقك يطلب نطاقات توفّر إمكانية الوصول إلى بيانات المستخدمين الحسّاسة. إذا كان
تطبيقك يستخدم نطاقات حسّاسة، يجب أن يخضع لمحاولة إثبات هويته من خلال
عملية إثبات الهوية
لإزالة هذا التحذير والقيود الأخرى. خلال مرحلة التطوير،
يمكنك تجاوز هذا التحذير من خلال اختيار خيارات متقدمة > الانتقال إلى {Project Name}
(غير آمن).
File not found error for credentials.json
عند تشغيل نموذج الرمز، قد تظهر لك رسالة الخطأ "لم يتم العثور على الملف" أو "لا يوجد ملف مماثل" بشأن credentials.json.
يحدث هذا الخطأ عندما لا تكون قد فوّضت بيانات اعتماد تطبيق الكمبيوتر المكتبي. للتعرّف على كيفية إنشاء بيانات اعتماد
لتطبيق كمبيوتر مكتبي، انتقِل إلى
إنشاء بيانات الاعتماد.
بعد إنشاء بيانات الاعتماد، تأكَّد من حفظ ملف JSON الذي تم تنزيله بتنسيق
credentials.json. بعد ذلك، انقل الملف إلى دليل العمل.
Token has been expired or revoked
عند تشغيل نموذج الرمز، قد تظهر لك رسالة الخطأ "انتهت صلاحية الرمز المميّز" أو
"تم إبطال الرمز المميّز".
يحدث هذا الخطأ عندما تنتهي صلاحية رمز دخول من خادم تفويض Google
أو تم إبطاله. للحصول على معلومات عن الأسباب المحتملة
والحلول، يُرجى الاطّلاع على
انتهاء صلاحية الرمز المميّز لإعادة التحميل.
أخطاء JavaScript
في ما يلي بعض أخطاء JavaScript الشائعة.
Error: origin_mismatch
يحدث هذا الخطأ أثناء عملية التفويض إذا كان المضيف والمنفذ المستخدَمَين
لعرض صفحة الويب لا يتطابقان مع مصدر JavaScript مسموح به في
مشروعك على Google Cloud Console. تأكَّد من ضبط مصدر
JavaScript مفوَّض وأنّ عنوان URL في المتصفّح يتطابق مع عنوان URL المصدر.
idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'
يحدث هذا الخطأ عندما لا تكون ملفات تعريف الارتباط التابعة لجهات خارجية وميزة تخزين البيانات مفعَّلة
في المتصفّح. هذه الخيارات مطلوبة من قِبل مكتبة "تسجيل الدخول باستخدام حساب Google". لمزيد من المعلومات، يُرجى الاطّلاع على ملفات تعريف الارتباط التابعة لجهات خارجية وتخزين البيانات.
idpiframe_initialization_failed: Not a valid origin for the client
يحدث هذا الخطأ عندما لا يتطابق النطاق المسجَّل مع النطاق الذي يتم
استخدامه لاستضافة صفحة الويب. تأكَّد من أنّ المصدر الذي سجّلته يتطابق مع عنوان URL
في المتصفّح.
تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This page addresses common authentication and authorization issues you might face, such as unverified apps, file errors, token issues, and JavaScript errors."],["Unverified app warnings occur when requesting sensitive user data, requiring app verification to remove them; during development, you can bypass this by selecting \"Advanced \u003e Go to {Project Name} (unsafe)\"."],["\"File not found\" errors for `credentials.json` arise from unauthorized desktop application credentials, fixable by creating and saving credentials to your working directory."],["Expired or revoked token errors happen when the access token isn't valid anymore, requiring investigation into potential causes and fixes related to token expiration."],["JavaScript errors like `origin_mismatch`, `idpiframe_initialization_failed` are explained, often caused by mismatched origins, disabled third-party cookies or data storage, and domain discrepancies."]]],["The content addresses common authentication and authorization issues. It details resolving the \"This app isn't verified\" warning by undergoing a verification process or bypassing it temporarily. It also explains the \"file not found\" error for `credentials.json`, advising users to create desktop application credentials, save the file correctly, and move it to the working directory. The \"Token has been expired or revoked\" error is covered, with a link provided for resolution. It also addresses Javascript errors including origin mismatches and issues with localStorage, recommending setting correct origins and enabling third-party cookies.\n"]]