Configurare SAML con ADFS

Stiamo cercando di utilizzare il plugin SAML: GitHub - discourse/discourse-saml: Support for SAML in Discourse · GitHub per aggiungere il supporto agli accessi SAML con ADFS. Tuttavia, non sembra che stiamo facendo molti progressi. Una volta che avrò una migliore comprensione di questo processo, sarei lieto di scrivere una guida più dettagliata per gli altri.

Attualmente, il mio problema principale è che non riesco a far apparire il pulsante “Accedi con SAML”.

Ecco le mie domande più dettagliate sul processo:

  1. Tutta la configurazione SAML viene effettuata tramite app.yml, corretto? Non sono necessarie o consigliate impostazioni o modifiche reali in /admin?
  2. Le impostazioni SAML in app.yml dovrebbero essere nella sezione env:?
  3. Le virgolette doppie (") dovrebbero essere utilizzate attorno a DISCOURSE_SAML_CERT_FINGERPRINT e DISCOURSE_SAML_CERT in app.yml?
  4. DISCOURSE_SAML_CERT dovrebbe includere l’intestazione e il piè di pagina BEGIN/END CERTIFICATE?
  5. Il certificato DISCOURSE_SAML_CERT dovrebbe essere tutto su una riga o dovrebbero esserci interruzioni di riga?
  6. È necessario impostare DISCOURSE_SAML_AUTO_CREATE_ACCOUNT su TRUE o 1 affinché appaia il pulsante “Accedi con SAML”? Sembrava esserci un altro post su meta che suggeriva che fosse necessario.
  7. Quali log dovrei esaminare per determinare perché il pulsante potrebbe non apparire?

Grazie per qualsiasi assistenza. Per essere chiari, abbiamo aggiunto il plugin, modificato le impostazioni di app.yml e ricostruito, ma il pulsante non appare. Il plugin mostra che è installato in /admin/plugins, quindi penso di aver capito le basi, ma evidentemente mi manca qualcosa di importante e non sto avendo molta fortuna nel trovare documentazione sul processo.

Yes, that would be a good practice.

No.

It should be on a single line. So DISCOURSE_SAML_CERT="MII...."

No.

Now for why the button is not appearing, which keys did you set in the app.yml except for the ones you mention in this post?

1 Mi Piace

Thanks for all the clarifications!

This is a brand new install, just for testing this process, so nothing aside from what ./discourse-setup does. The only other plugin on the system is: docker_manager

Here is what my Saml plugin setting section looks like:

I just did a quick test, and just the mere presence of the plugin - without any configuration at all - should be sufficient for the button to appear. (Although without configuration it will not be functional of course).

So it seems like your issue is more in the plugin installation.

Interesting, thanks for the information. I might just blow away /var/discourse and start again then.

Many thanks for all the clarifying points though.

1 Mi Piace

To be clear, the plugin URL would be: GitHub - discourse/discourse-saml: Support for SAML in Discourse

@RGJ what versions have you tested the plugin with? After blowing away /var/discourse and rebuilding I am still not seeing a login button. I’ve tried the plugin URL with and without the .git

image

If I do a ./launcher enter app, I see the plugin directory appears to be there:

Still no button :frowning:

image

Dear All, very good morning. I am very new with rather login first time :slight_smile:
Good to see such a awesome platform.
Do we have some handy documentation for ADFS integration ?
Specially step by step what attribute and other parameter we should configure in ADFS as well Discourse

Will be great if someone who is fully aware could help us, thank you so much.