KEYCLOAK-7325: Fix Issue regarding HTTP 500 Server Error for resource_set Endpoint in ProtectionService (#5196)
* KEYCLOAK-7325: Fix Issue regarding HTTP 500 Server Error for resource_set Endpoint in ProctectionService
This commit is contained in:
parent
1634bef28a
commit
487539542a
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public class ProtectionService {
|
|||
KeycloakIdentity identity = createIdentity(true);
|
||||
ResourceServer resourceServer = getResourceServer(identity);
|
||||
RealmModel realm = authorization.getRealm();
|
||||
ClientModel client = realm.getClientById(identity.getId());
|
||||
ClientModel client = realm.getClientById(resourceServer.getId());
|
||||
KeycloakSession keycloakSession = authorization.getKeycloakSession();
|
||||
UserModel serviceAccount = keycloakSession.users().getServiceAccount(client);
|
||||
AdminEventBuilder adminEvent = new AdminEventBuilder(realm, new AdminAuth(realm, identity.getAccessToken(), serviceAccount, client), keycloakSession, clientConnection);
|
||||
|
|
Loading…
Reference in a new issue