Discourse als Identitätsanbieter nutzen (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 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

1 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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.

Hallo,
ich verwende ASP.NET Core und erhalte folgenden Fehler:

Die SSO-Authentifizierung ist aufgrund eines fehlenden Secrets fehlgeschlagen. Wenden Sie sich an die Administratoren der Website, um dieses Problem zu beheben.

Bitte teilen Sie mir mit, welche Code- oder Einstellungsänderungen für dieses Problem erforderlich sind?

Ich habe das gleiche Problem.

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

Es scheint auf ein “leeres Secret” hinzuweisen.

Vielleicht liegt es daran, dass die Domäne nicht übereinstimmt?

Dies scheint ein Fehler in Discourse zu sein

sso_secret ist definitiv nil :joy:

Nach unten scrollen bis zur Zeile 25 – dort wird der Host aus der return_url extrahiert und damit das Secret nachgeschlagen.

Ist es möglich, aus dem SSO-Flow einen API-Schlüssel zu erhalten, damit meine App Beiträge von dem über SSO authentifizierten Discourse-Benutzer erstellen kann?

Oder ist der empfohlene Weg, einen API-Schlüssel für „alle Benutzer

So handelt unser WordPress-Plugin. Der Discourse-Benutzername des Nutzers wird in der Datenbank gespeichert und dann mit dem „All User’s API Key

2 „Gefällt mir“

Hallo zusammen,

ich habe gerade ein wichtiges Sicherheitsupdate für discourse-auth-proxy veröffentlicht. Bitte stellen Sie sicher, dass Sie den neuen Code herunterladen und anwenden.

Wenn Sie unser Image von DockerHub verwenden, lautet die Version mit dem Fix discourse/auth-proxy:20200609.185704.

2 „Gefällt mir“

Fragt sich, ob jemand bestehende SSO-Plugins für MediaWiki (z. B. Extension:PluggableSSO - MediaWiki) verbessern kann, um dies ohne zu viele technische Kenntnisse zu ermöglichen (d. h. alle erforderlichen Informationen auf einer Einstellungsseite einzugeben und fertig).

1 „Gefällt mir“

Bitte probieren Sie dies aus:

Es fungiert als Plugin für die Erweiterung PluggableAuth. Ich habe es noch nicht auf öffentlichen Seiten eingesetzt, und es fehlen dringend Unit-Tests usw., aber bisher scheint es zu funktionieren. Es sollten keine technischen Fähigkeiten erforderlich sein, die über die zum Installieren und Konfigurieren einer beliebigen anderen MediaWiki-Erweiterung hinausgehen.

4 „Gefällt mir“