Zammad: تسجيل الدخول / المصادقة إلى Google لا يعمل ، أحصل على 422 كل مرة

تم إنشاؤها على ١٤ نوفمبر ٢٠١٨  ·  3تعليقات  ·  مصدر: zammad/zammad

معلومات:

  • إصدار زمماد المستخدم: 2.7.0، 1542128389.fd858449.centos7
  • طريقة التثبيت (المصدر ، الحزمة ، ..): مستودع centos7 zammad
  • نظام التشغيل: centos7.5
  • إصدار + قاعدة البيانات: posgresql 9.2.24
  • إصدار Elasticsearch: 5.6.13
  • إصدار المتصفح +: Chrome 70.0.3538.77 (الإصدار الرسمي) (64 بت)

سلوك متوقع:

  • Google Auth تسجيل الدخول للعمل كما هو متوقع

السلوك الفعلي:

  • تلقيت خطأ - 422: تم رفض التغيير الذي تريده. رسالة من google_oauth2: بيانات اعتماد غير صالحة

خطوات إعادة إنتاج السلوك:

  • لقد قمت بتثبيت أحدث برنامج Zammad ، واتبعت الوثائق ، وأنشأت مشروعًا في google cloud ، وقمت بإعداد بيانات الاعتماد في Zammad ، وتم التحقق من نطاقي وكل شيء ، ولم يعمل. مع نفس الإعداد لمصادقة google ، فإنه يعمل في العديد من حالات grafana دون أي مشاكل.

لا يعمل تسجيل الدخول من الصفحة الرئيسية للمستخدمين الجدد أو الحاليين ، كما أن المستخدمين الحاليين الذين لديهم مستخدم / تصريح لا يمكنهم ربط حساباتهم على google - كلهم ​​يحصلون على نفس الخطأ.

نعم أنا متأكد من أن هذا خطأ وليس طلب ميزة أو سؤال عام.

الإنتاج

question verified

التعليق الأكثر فائدة

شكرًا ، يمكنني أن أؤكد أنه بعد تمكين واجهة برمجة تطبيقات Google+ - تعمل الآن كما هو متوقع.

ال 3 كومينتر

نفس المشكلة هنا راجع للشغل. عنوان URL الخاص بمعاودة الاتصال صحيح وحساب google تحت نفس البريد الإلكتروني موجود ويمتلك المشروع في الواقع حيث حصل zammad على مفتاح العميل + السر .. حاولت العثور على بعض سجلات google لـ IAM / Auth ولكن لم تنجح.

هل هناك أي طريقة للعثور على سجلات لطلبات المصادقة على مشروعك؟

شكرا على نشرك.
يمكنني التحقق من ذلك بمشروع لم يتم تمكين المصادقة عليه مطلقًا - ولكن:
هذا ليس حشرة.

يمكن العثور على سبب هذه المشكلة في log / web-1.log:

I, [2018-11-16T10:39:42.637447 #23972]  INFO -- omniauth: (google_oauth2) Request phase initiated.
I, [2018-11-16T10:39:42.970970 #23972]  INFO -- omniauth: (google_oauth2) Callback phase initiated.
E, [2018-11-16T10:39:43.325612 #23972] ERROR -- omniauth: (google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, {"errors"=>[{"domain"=>"usageLimits", "reason"=>"accessNotConfigured", "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "extendedHelp"=>"https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"}], "code"=>403, "message"=>"Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."}:
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "extendedHelp": "https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE]"
   }
  ],
  "code": 403,
  "message": "Access Not Configured. Google+ API has not been used in project [PROJECTID_GOOGLE] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[PROJECTID_GOOGLE] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
 }
}

تحتاج بالفعل إلى تمكين واجهة برمجة تطبيقات Google+ قبل أن تتمكن من مصادقة المستخدمين عبر Google.
سأعمل على تحديث الوثائق ، لأن هذا الجزء من مستنداتنا مكتوب بشكل سيء. آسف للإزعاج ربما واجهتك.

قم بزيارة الرابط التالي (تحتاج إلى تعديله باستخدام معرف مشروع API الخاص بك) لتمكين واجهة برمجة تطبيقات Google+:
https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=[Your-API-Project-ID]

سأغلق هذه المشكلة - يمكنك العثور على مشكلة التوثيق هنا: https://github.com/zammad/zammad-admin-documentation/issues/10

شكرًا ، يمكنني أن أؤكد أنه بعد تمكين واجهة برمجة تطبيقات Google+ - تعمل الآن كما هو متوقع.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات