Keycloak + FreeRadius

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 : 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!

My python module is executed by freeradius. This module uses python-keycloak-client python lib ( to communicate with Keycloak via OpenID protocol.

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


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