Your last error shows that Keycloak wants it SAML-Requests signed.
So either you need to configure:
DISCOURSE_SAML_SP_CERTIFICATE: SAML Service Provider CertificateDISCOURSE_SAML_SP_PRIVATE_KEY: SAML Service Provider Private KeyDISCOURSE_SAML_AUTHN_REQUESTS_SIGNED: defaults to falseDISCOURSE_SAML_WANT_ASSERTIONS_SIGNED: defaults to falseDISCOURSE_SAML_LOGOUT_REQUESTS_SIGNED: defaults to falseDISCOURSE_SAML_LOGOUT_RESPONSES_SIGNED: defaults to false
(you need a certificate with a private key for discourse (the SP) for that).
Or you could disable the setting regarding signed requests in Keycloak (I do not know Keycloak, but from your screenshot I would think that turning off “Client signature required” should do the trick …)
Careful - turning off signing of client requests has certain security implications (namely other parties could sign off your user(s) - IIRC) - better do your research there and do not rely on me ![]()