# דיסקוס, Keycloak, SAML - האם אי אפשר להגדיר?

**URL:** <https://meta.discourse.org/t/discourse-keycloak-saml-is-it-impossible-to-configure/165333>\
**Category:** SSO\
**Created:** [25 בספטמבר,‏ 2020,‏ 8:01am UTC](https://meta.discourse.org/t/discourse-keycloak-saml-is-it-impossible-to-configure/165333 "2020-09-25T08:01:26Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![IT-Sumpfling](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/it-sumpfling/32/197353_2.png) [@IT-Sumpfling](https://meta.discourse.org/u/IT-Sumpfling)\
**Post date:** [18 באוקטובר,‏ 2020,‏ 7:54am UTC](https://meta.discourse.org/t/discourse-keycloak-saml-is-it-impossible-to-configure/165333/6 "2020-10-18T07:54:39Z")

</div>

Your last error shows that Keycloak wants it SAML-Requests signed.  
So either you need to configure:

- `DISCOURSE_SAML_SP_CERTIFICATE` : SAML Service Provider Certificate
- `DISCOURSE_SAML_SP_PRIVATE_KEY` : SAML Service Provider Private Key
- `DISCOURSE_SAML_AUTHN_REQUESTS_SIGNED` : defaults to false
- `DISCOURSE_SAML_WANT_ASSERTIONS_SIGNED` : defaults to false
- `DISCOURSE_SAML_LOGOUT_REQUESTS_SIGNED` : defaults to false
- `DISCOURSE_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 😉

---

_[View the full topic](https://meta.discourse.org/t/discourse-keycloak-saml-is-it-impossible-to-configure/165333)._
