# Keycloak with Discourse

**URL:** <https://meta.discourse.org/t/keycloak-with-discourse/63139>\
**Category:** SSO\
**Created:** [22 Mayo, 2017 13:50 UTC](https://meta.discourse.org/t/keycloak-with-discourse/63139 "2017-05-22T13:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![maisa](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@maisa](https://meta.discourse.org/u/maisa)\
**Post date:** [23 Mayo, 2017 17:10 UTC](https://meta.discourse.org/t/keycloak-with-discourse/63139/14 "2017-05-23T17:10:51Z")

</div>

@DeanMarkTaylor and @fefrei, thank you for the answer.  
But I’m not being able to configure [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) to work with Keycloak.  
Keycloak works with SAML, OpenID and OAuth protocols.  
On my SSO configuration is:  
enable sso: is checked  
sso url: [http://mykeycloakdomain/auth/realms/myrealm/protocol/openid-connect/auth?response\_type=code&scope=openid&client\_id=myclientid&redirect\_uri=http//mydiscoursedomain/session/sso\_login](http://mykeycloakdomain/auth/realms/myrealm/protocol/openid-connect/auth?response_type=code&scope=openid&client_id=myclientid&redirect_uri=http//mydiscoursedomain/session/sso_login)  
sso secret: this\_is\_my\_secret

Where on sso url I put the redirect\_uri to redirect to Discourse session/sso\_login. But when Keycloak do the redirect it did not passes the param sso and sin on url as expected for Discourse, so I get an error 500. So I don’t know if I’m missing some configuration or if not able to integrate Keycloak with Discourse by sso.

---

_[View the full topic](https://meta.discourse.org/t/keycloak-with-discourse/63139)._
