# Oauth2 keycloak setup?

**URL:** https://meta.discourse.org/t/oauth2-keycloak-setup/163838
**Category:** Support
**Created:** [September 12, 2020, 4:52pm UTC](https://meta.discourse.org/t/oauth2-keycloak-setup/163838 "2020-09-12T16:52:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Joe\_Blasi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joe_blasi/32/160783_2.png) [@Joe\_Blasi](https://meta.discourse.org/u/Joe_Blasi)
#### Post date: [September 12, 2020, 4:52pm UTC](https://meta.discourse.org/t/oauth2-keycloak-setup/163838/1 "2020-09-12T16:52:28Z")

</div>

How do I get discourse working with keycloak with oauth2 or sso.  
With oauth2 I just get an long wait after logging into keycloak and then an bad gateway error on the discourse site.
