# Keycloak with Discourse

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

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [May 23, 2017, 11:34am UTC](https://meta.discourse.org/t/keycloak-with-discourse/63139/12 "2017-05-23T11:34:11Z")

</div>

> [@maisa](#):
>
> There is no way to be authenticated on my site and when I access my Discourse instance I accesses it without the need to click on “Log in” button ?

I’m not familiar with Keycloak or this specific OAuth integration but this seems relevant to you - but depends on the solution you end up choosing SSO / OAuth etc:

> [@SSO integration & external profile sync help](https://meta.discourse.org/t/sso-integration-external-profile-sync-help/62457/4):
>
> just have your page contain insert a hidden IFRAME / EMBED of the Discourse site to the URL `/session/sso`…  
> Only add this hidden IFRAME when the user hasn’t been authenticated recently (so it doesn’t slow down every page load) - probably just when they initially login.
> 
> This will keep the Discourse session alive. This will also log them into Discourse if they aren’t already
> 
> You can look to the Discourse WordPress plugin I believe it contains something like this.

---

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