feat: ldap api connection test and sync endpoints#659
Merged
LeadcodeDev merged 3 commits intomainfrom Jan 16, 2026
Merged
Conversation
Wire the user repository through ApplicationService and the FederationServiceImpl. Add list_mappings_by_provider to the repository implementation. Extend federation sync with LDAP user sync logic, richer SyncResult and SyncError types, external_id attribute handling, base64 decoding, and improved logging.
Add TestConnectionResponse DTO and From conversion. Implement POST
/federation/providers/{id}/test-connection handler, route and utoipa
docs and wire it to the federation service.
Update frontend API client and add useTestUserFederationConnection
mutation. Refactor LDAP create/detail pages to use a nested config
shape, parse connection URLs, base64-encode bind passwords on save,
decode for display, and add a test-connection action. Add confetti hook
and canvas-confetti deps and update components registry.
Add sync-users POST handler, route and OpenAPI docs plus SyncUsersResponse DTO. Wire federation sync through application services and repository (get_mapping_by_user_id). Extend SyncResult with start/completion timestamps and map to DTO. Frontend: add useSyncUsers mutation, invalidate provider queries and add sync UI/button. Security: reject empty LDAP bind passwords. Add Federated credential variant in credential entities.
LeadcodeDev
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.