استخدام Discourse كمزود هوية (SSO، DiscourseConnect)

Does anyone know if this Ruby/Rails integration moved to a new location? Or if it was removed, does anyone have a copy of the old code?

(It looks like the Go repo is also gone.)

It’s very possible @gogo52cn is the same person as gogo52cn · GitHub ; they might be able to let us know?

إعجاب واحد (1)

Is it possible to use discourse as a LDAP provider?

I don’t know if I’m doing it correctly, but this initial sketch for Rails 5.2 seems to work (in case it can save time for anyone). If anyone has suggestions for improving it, let me know.

I also saw an OmniAuth strategy, but I haven’t looked closely at it yet.

No, this not possible.

إعجابَين (2)

hello, I installed the plugin in WP-multisite.
I network-activated the plugin. The plugin showed that the connection was sucessful

I configured the credentials in one of the sites to enable Discourse as SSO provider.

However when I click on “Log in with Discourse” I get a 500 Error. Lookin at the logs I found this:

"talk.co-pp.io" 172.17.0.1 "GET /session/sso_provider?sso=bm9uY2U9YTk2ZWZkYzRjMmIyZmJlM2FjNTAzYTYzOWRiYzBkZTQmcmV0dXJuX3Nzb191cmw9aHR0cCUzQSUyRiUyRmNvLXBwLmlv&sig=33b1edba92b8f0d93b0e57edaf262e73a20689aeff2d86e2f61012d9cd99e878 HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36" "-" 500 906 "-" 0.016 0.018 "-"

Any ideas?

@j127 @supermathie - there is a copy here…

إعجاب واحد (1)

Thanks – I recently switched to Phoenix and rewrote the SSO code in Elixir. (Your forum is great, by the way.)

إعجاب واحد (1)

Ah that’s awesome Josh! Could you add it to the first post of this thread please? Hopefully I will get a chance to use it soon :smiley:

Also thank you for the kind words! If you like that forum, I am hoping to launch another (Discourse) forum next year which you might like as well :blush:

إعجاب واحد (1)

Sure, I’ll have to extract it from the Phoenix app, but then I’ll post it on Github. Maybe other people can help improve it, since this is my first real Phoenix site.

Looking forward to seeing it. I read your other forum regularly.

إعجاب واحد (1)

Can I use Discourse as an SSO provider if I’m also using SSO as my discourse auth?
I have things setup, but it doesn’t seem like Discourse correctly calls back the return URL.

…and yes, I do realize that Discourse is just acting as an SSO proxy, but the primary web app only implements Discourse SSO. This is not meant to be a permanent strategy but a temporary one, or at least a useful tool to have.

مرحبًا،
أستخدم ASP.NET Core وأواجه الخطأ التالي:

فشل مصادقة SSO بسبب عدم وجود المفتاح السري. يرجى التواصل مع مسؤولي الموقع لحل هذه المشكلة.

أرجو إخباري بأي تغييرات في الكود أو الإعدادات مطلوبة لحل هذه المشكلة؟

واجهت نفس المشكلة.

https://review.discourse.org/t/fix-better-error-when-sso-fails-due-to-blank-secret-7946/4894

يبدو أنها تشير إلى “سر فارغ”.

ربما يكون السبب عدم تطابق النطاق؟

يبدو أن هذا خطأ في Discourse

sso_secret هو بالتأكيد nil :joy:

مرر للأسفل إلى السطر 25 - فهو يحلل المضيف من return_url ويقوم بالبحث عن السر باستخدامه.

هل من الممكن الحصول على مفتاح API من تدفق SSO بحيث يمكن لتطبيقك إنشاء منشورات من مستخدم Discourse المصادق عليه عبر SSO؟

أم أن الطريقة الموصى بها هي إنشاء مفتاح API لـ “جميع المستخدمين”، ثم عند إنشاء منشور، استخدام هذا المفتاح مقترناً باسم المستخدم المسترجع من تدفق المصادقة SSO؟

هذه هي الطريقة التي يتعامل بها مكون WordPress الخاص بنا مع الأمر. يتم حفظ اسم مستخدم Discourse للمستخدم في قاعدة البيانات، ثم يُقترن بمفتاح API الخاص بـ “جميع المستخدمين” لنشر المنشورات تحت هذا الاسم.

إعجابَين (2)

مرحبًا بالجميع،

لقد أصدرت للتو إصلاحًا أمنيًا مهمًا لـ discourse-auth-proxy. يرجى التأكد من تنزيل الكود الجديد وتطبيقه.

إذا كنت تستخدم صورتنا من DockerHub، فإن الإصدار الذي يحتوي على الإصلاح هو discourse/auth-proxy:20200609.185704.

إعجابَين (2)

هل يتساءل أحدكم عما إذا كان بإمكانه تحسين بعض إضافات SSO الحالية لـ MediaWiki (مثل Extension:PluggableSSO - MediaWiki) لجعل هذا يعمل دون الحاجة إلى مهارات تقنية كثيرة (أي إدخال جميع المعلومات الضرورية في صفحة الإعدادات وانتهى الأمر)؟

إعجاب واحد (1)

يرجى تجربة هذا:

يعمل كإضافة لامتداد PluggableAuth. لم أقم بنشره بعد على أي مواقع عامة، كما أنه يفتقر بشدة إلى اختبارات الوحدة وما إلى ذلك، لكنه يبدو أنه يعمل حتى الآن. لا يجب أن يتطلب أي مهارات تقنية تتجاوز تلك اللازمة لتثبيت/تكوين أي امتداد آخر لـ MediaWiki.

4 إعجابات