# Keycloak + FreeRadius

**URL:** <https://forum.keycloak.org/t/keycloak-freeradius/201>\
**Category:** Miscellanaeous\
**Created:** [October 22, 2019, 2:19pm UTC](https://forum.keycloak.org/t/keycloak-freeradius/201 "2019-10-22T14:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcoBros](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@marcoBros](https://forum.keycloak.org/u/marcoBros)\
**Post date:** [October 22, 2019, 2:19pm UTC](https://forum.keycloak.org/t/keycloak-freeradius/201/1 "2019-10-22T14:19:51Z")

</div>

Hello there,

I’m looking for some help to connect freeradius with keycloak by using python module.  
I’ve based my searches on this web page : `https://tech.socarcorp.kr/security/2019/07/31/keycloak-sso.html`. This web page is mostly in Korean…

Does someone know how to configure properly freeradius and keycloak to use keycloak realm & user db?  
Can someone help on this?

Thank you so much!  
Marco

---

<div class="post-metadata">

**Author:** ![marcoBros](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@marcoBros](https://forum.keycloak.org/u/marcoBros)\
**Post date:** [November 1, 2019, 5:03pm UTC](https://forum.keycloak.org/t/keycloak-freeradius/201/2 "2019-11-01T17:03:28Z")

</div>

My python module is executed by freeradius. This module uses python-keycloak-client python lib ([https://python-keycloak-client.readthedocs.io/en/latest/](https://python-keycloak-client.readthedocs.io/en/latest/)) to communicate with Keycloak via OpenID protocol.

I have currently no idea how to handle authorization & authentication workflow between Freeradius & Keycloak.

Up

---

<div class="post-metadata">

**Author:** ![lucamaf](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/lucamaf/32/843_2.png) [@lucamaf](https://forum.keycloak.org/u/lucamaf)\
**Post date:** [July 11, 2020, 7:06am UTC](https://forum.keycloak.org/t/keycloak-freeradius/201/3 "2020-07-11T07:06:47Z")

</div>

You can use the pam-oauth2 module, assuming you are using freeradius and can modify the server. There is a good explanation on how to perform the whole setup here [https://github.com/thomasdarimont/keycloak-freeradius-demo](https://github.com/thomasdarimont/keycloak-freeradius-demo)
