[KEYCLOAK-14653] Changed operation type to UPDATE when updating client scopes in a client and added representation.
This commit is contained in:
parent
de09bdf32d
commit
483e28bb02
1 changed files with 6 additions and 4 deletions
|
@ -332,7 +332,8 @@ public class ClientResource {
|
|||
}
|
||||
client.addClientScope(clientScope, defaultScope);
|
||||
|
||||
adminEvent.operation(OperationType.CREATE).resource(ResourceType.CLIENT).resourcePath(session.getContext().getUri()).success();
|
||||
final ClientRepresentation rep = ModelToRepresentation.toRepresentation(client, session);
|
||||
adminEvent.operation(OperationType.UPDATE).resource(ResourceType.CLIENT).resourcePath(session.getContext().getUri()).representation(rep).success();
|
||||
}
|
||||
|
||||
|
||||
|
@ -348,7 +349,8 @@ public class ClientResource {
|
|||
}
|
||||
client.removeClientScope(clientScope);
|
||||
|
||||
adminEvent.operation(OperationType.DELETE).resource(ResourceType.CLIENT).resourcePath(session.getContext().getUri()).success();
|
||||
final ClientRepresentation rep = ModelToRepresentation.toRepresentation(client, session);
|
||||
adminEvent.operation(OperationType.UPDATE).resource(ResourceType.CLIENT).resourcePath(session.getContext().getUri()).representation(rep).success();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue