Skip to content

Commit

Permalink
UIU-3234: Delete a user from Keycloak when it is deleted in UI (#2786)
Browse files Browse the repository at this point in the history
Refs UIU-3234.

(cherry picked from commit 227ab2c)
aidynoJ authored and zburke committed Nov 8, 2024
1 parent f8bea62 commit 966644b
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
## 11.0.2 IN PROGRESS

* If keycloak user record doesn't exist, create it before resetting password. Refs UIU-3236.
* Conditionally use delete method of the `mod-users-keycloak` if `users-keycloak` interface is present in UserRecordContainer. Refs UIU-3234.

## [11.0.1](https://github.com/folio-org/ui-users/tree/v11.1.0) (2024-11-08)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.0...v11.0.1)
7 changes: 6 additions & 1 deletion src/routes/UserRecordContainer.js
Original file line number Diff line number Diff line change
@@ -29,7 +29,12 @@ class UserRecordContainer extends React.Component {
},
delUser: {
type: 'okapi',
path: 'bl-users/by-id/:{id}',
path: (queryParams, pathComponents, resourceData, config, props) => {
if (props.stripes.hasInterface('users-keycloak')) {
return `users-keycloak/users/${pathComponents.id}`;
}
return `bl-users/by-id/${pathComponents.id}`;
},
fetch: false,
},
// As the transaction check spans multiple modules the checks need to be done in mod-users-bl

0 comments on commit 966644b

Please sign in to comment.