تنظيم صفحاتك في مجموعات يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توضّح هذه الصفحة بعض المشاكل الشائعة التي قد تواجهك بشأن المصادقة والتفويض.
This app isn't verified
إذا عرضت شاشة موافقة OAuth التحذير "لم يتم التحقّق من هذا التطبيق"، يعني ذلك أنّ تطبيقك يطلب نطاقات تتيح الوصول إلى بيانات المستخدمين الحسّاسة. إذا كان تطبيقك يستخدم نطاقات حسّاسة، يجب أن يخضع لعملية التحقّق لإزالة هذا التحذير والقيود الأخرى. أثناء مرحلة التطوير، يمكنك تجاوز هذا التحذير من خلال النقر على خيارات متقدمة > الانتقال إلى {اسم المشروع} (غير آمن).
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 في المتصفّح.
تاريخ التعديل الأخير: 2025-08-01 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-08-01 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["This page describes some common issues that you might encounter involving\nauthentication and authorization.\n\n`This app isn't verified`\n\nIf the OAuth consent screen displays the warning \"This app isn't verified,\" your\napp is requesting scopes that provide access to sensitive user data. If your\napplication uses sensitive scopes, your app must go through the\n[verification process](https://support.google.com/cloud/answer/7454865)\nto remove that warning and other limitations. During the development phase, you\ncan continue past this warning by selecting **Advanced \\\u003e Go to {Project Name}\n(unsafe)**.\n\n`File not found error for credentials.json`\n\nWhen running the code sample, you might receive a \"file not found\" or \"no such\nfile\" error message regarding credentials.json.\n\nThis error occurs when you have not authorized the desktop application\ncredentials. To learn how to create credentials\nfor a desktop application, go to\n[Create credentials](/workspace/guides/create-credentials#desktop-app).\n\nAfter you create the credentials, make sure the downloaded JSON file is saved as\n`credentials.json`. Then move the file to your working directory.\n\n`Token has been expired or revoked`\n\nWhen running the code sample, you might receive a \"Token has been expired\" or\n\"Token has been revoked\" error message.\n\nThis error occurs when an access token from the Google Authorization Server has\neither expired or has been revoked. For information about potential causes\nand fixes, see\n[Refresh token expiration](/identity/protocols/oauth2#expiration).\n\nJavaScript errors\n\nThe following are some common JavaScript errors.\n\n`Error: origin_mismatch`\n\nThis error occurs during the authorization flow if the host and port used\nto serve the web page doesn't match an allowed JavaScript origin on your\nGoogle Cloud console project. Make sure you set an authorized\nJavaScript origin and that the URL in your browser matches the origin URL.\n\n`idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'`\n\nThis error occurs when third-party cookies and data storage aren't enabled\nin your browser. These options are required by the Google Sign-in library. For\nmore information, see\n[3rd-party cookies and data storage](https://developers.google.com/identity/sign-in/web/troubleshooting#third-party_cookies_and_data_blocked).\n| **Note:** In your own app, you should prompt users to enable third-party cookies and data storage or add an exception for `accounts.google.com`.\n\n`idpiframe_initialization_failed: Not a valid origin for the client`\n\nThis error occurs when the domain registered doesn't match the domain being\nused to host the web page. Ensure that the origin you registered matches the URL\nin the browser."]]