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

My python module is executed by freeradius. This module uses python-keycloak-client python lib (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

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