Configurando SAML com ADFS

Estamos tentando usar o plugin SAML: GitHub - discourse/discourse-saml: Support for SAML in Discourse · GitHub para adicionar suporte a logins SAML com o ADFS. No entanto, não estou conseguindo avançar muito. Com prazer, escreverei um guia mais detalhado para outras pessoas assim que entender melhor esse processo.

Atualmente, meu maior problema é que não consigo fazer o botão “Login com SAML” aparecer.

Aqui estão minhas perguntas mais detalhadas sobre o processo:

  1. Toda a configuração do SAML é feita através do app.yml, correto? Não há configurações ou alterações reais em /admin que sejam necessárias ou devam ser usadas?
  2. As configurações do SAML no app.yml devem estar na seção env:?
  3. Aspas duplas (") devem ser usadas em torno de DISCOURSE_SAML_CERT_FINGERPRINT e DISCOURSE_SAML_CERT no app.yml?
  4. DISCOURSE_SAML_CERT deve incluir o cabeçalho/rodapé BEGIN/END CERTIFICATE?
  5. O certificado DISCOURSE_SAML_CERT deve estar todo em uma única linha ou devem haver quebras de linha?
  6. É obrigatório definir DISCOURSE_SAML_AUTO_CREATE_ACCOUNT como TRUE ou 1 para que o botão “Login com SAML” apareça? Parecia haver outra postagem no meta sugerindo que era necessário.
  7. Em quais logs devo procurar para determinar por que o botão pode não estar aparecendo?

Obrigado por qualquer assistência. Para deixar claro, adicionamos o plugin, ajustamos as configurações do app.yml e recriamos, mas o botão não está aparecendo. O plugin mostra que está instalado em /admin/plugins, então sinto que tenho o básico correto, mas claramente estou perdendo algo importante e não estou tendo muita sorte ao encontrar documentação sobre o 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?

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.

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

Prezados todos, muito bom dia. Sou muito novo e estou fazendo login pela primeira vez :slight_smile:
É ótimo ver uma plataforma tão incrível.
Temos alguma documentação prática para integração com o ADFS?
Especificamente, passo a passo, quais atributos e outros parâmetros devemos configurar no ADFS e no Discourse.

Seria ótimo se alguém que tenha pleno conhecimento pudesse nos ajudar. Muito obrigado.