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.)
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?
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.
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…
Thanks – I recently switched to Phoenix and rewrote the SSO code in Elixir. (Your forum is great, by the way.)
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 
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 
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.
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.
Ciao,
sto utilizzando ASP.NET Core e ricevo il seguente errore.
L’autenticazione SSO è fallita a causa della mancanza di un segreto. Contatta gli amministratori del sito per risolvere questo problema.
Fammi sapere se sono necessarie modifiche al codice o alle impostazioni per risolvere questo problema?
Ho riscontrato lo stesso problema.
https://review.discourse.org/t/fix-better-error-when-sso-fails-due-to-blank-secret-7946/4894
Sembra indicare “segreto vuoto”.
Forse è dovuto a un mismatch del dominio?
Sembra esserci un bug in Discourse
sso_secret è sicuramente nil ![]()
Scorri fino alla riga 25: estrae l’host dall’attributo return_url e cerca la chiave segreta corrispondente.
È possibile ottenere una chiave API dal flusso SSO in modo che la mia app possa creare post dall’utente Discourse autenticato tramite SSO?
O il metodo consigliato è creare una chiave API per “tutti gli utenti” e, quando si crea un post, utilizzare quella chiave abbinata al nome utente restituito dal flusso di autenticazione SSO?
È così che il nostro plugin WordPress gestisce la cosa. Il nome utente Discourse dell’utente viene salvato nel database e poi abbinato alla chiave API “Tutti gli utenti” per pubblicare post sotto quel nome utente.
Ciao a tutti,
Ho appena rilasciato una correzione di sicurezza importante per discourse-auth-proxy. Assicuratevi di scaricare e applicare il nuovo codice.
Se state utilizzando la nostra immagine da DockerHub, la versione con la correzione è discourse/auth-proxy:20200609.185704.
Vi chiedo se qualcuno possa migliorare alcuni plugin SSO esistenti per MediaWiki (ad es. Extension:PluggableSSO - MediaWiki) per rendere tutto ciò funzionante senza bisogno di troppe competenze tecniche (ovvero, inserire tutte le informazioni necessarie in una pagina delle impostazioni e voilà).
Prova questo:
Funziona come plugin per l’estensione PluggableAuth. Non l’ho ancora implementato su siti pubblici e manca gravemente di test unitari e altri tipi di test, ma sembra funzionare finora. Non dovrebbe richiedere competenze tecniche superiori a quelle necessarie per installare e configurare qualsiasi altra estensione di MediaWiki.