# Discourse with Keycloak for SSO

**URL:** <https://meta.discourse.org/t/discourse-with-keycloak-for-sso/152922>\
**Category:** Development\
**Created:** [May 27, 2020, 8:59am UTC](https://meta.discourse.org/t/discourse-with-keycloak-for-sso/152922 "2020-05-27T08:59:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![AAverin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aaverin/32/181948_2.png) [@AAverin](https://meta.discourse.org/u/AAverin)\
**Post date:** [May 27, 2020, 8:59am UTC](https://meta.discourse.org/t/discourse-with-keycloak-for-sso/152922/1 "2020-05-27T08:59:35Z")

</div>

Is there a way to setup Keycloak as auth provider for Discourse? I need this to work in SSO manner, so that my users that have created account managed by Keycloak automatically have access and are logged in into Discourse instance too.  
I have read about OpenID configuration and people say that users have to login separately and create a separate account in Discourse with this setup. It’s not exactly what I am after.

Anything I could/should read about the topic?  
My intention is to have Discourse and Keycloak to be setup in separate composed docker containers and I would need a seamless auth between them so that I could create posts in Discourse using my API backend on behalf of the user that is logged in in my JS frontened app, with user data managed by Keycloak.

---

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