elkman / keycloak-radius-plugin

Make the radius server as part of keycloak SSO
Apache License 2.0
11 stars 3 forks source link

fix realm retrieval by name vs id #31

Closed elkman closed 9 months ago

elkman commented 9 months ago

RealmProvider can retrieve realms by ID (usually a UUID) or by name (the realm name specified e.g. when logging in with the username). The realm information from the RADIUS packages is always the name and therefore must be retrieved with RealmProvider#getRealmByName() instead of RealmProvider#getRealm(). (I'm not sure how this worked properly before and what change introduced the problem.) The test was also enhanced and adapted accordingly.