Skip to content

Comments

feat: ldap api provider crud endpoints#653

Merged
NathaelB merged 5 commits intomainfrom
642-ldap-api---provider-crud-endpoints
Jan 7, 2026
Merged

feat: ldap api provider crud endpoints#653
NathaelB merged 5 commits intomainfrom
642-ldap-api---provider-crud-endpoints

Conversation

@NathaelB
Copy link
Member

@NathaelB NathaelB commented Jan 6, 2026

No description provided.

- Add FederationService implementation in core
- Add FederationService delegation in ApplicationService
- Create DTOs with config sanitization
- Implement create, list, get, update, delete handlers
- Register routes under /realms/:realm/abyss
- Register OpenAPI docs
Add OpenAPI docs and integrate federation handlers under
/realms/{realm_name}/federation. Rename UTOIPA path param from realm to
realm_name, add endpoint summaries, and apply auth middleware. Update
generated frontend client types and endpoints (provider
requests/responses, update provider, userinfo, token fields).
Update FederationService trait and implementations to accept
Identity and realm_name for get/delete operations. Adjust HTTP
handlers to forward identity and realm_name and remove duplicate
realm checks. Change FederationServiceImpl to depend on
RealmRepository and FederationRepository, perform realm ownership
checks and return Forbidden on mismatch. Add ToSchema to
FederationProvider and adapt API responses accordingly.
@NathaelB NathaelB self-assigned this Jan 6, 2026
@NathaelB NathaelB linked an issue Jan 6, 2026 that may be closed by this pull request
Add FederationPolicy trait and implement it for FerriskeyPolicy. Enforce
policy checks inside FederationServiceImpl and move realm resolution
into the service. Thread Identity and realm_name through service APIs
and wire the policy into ApplicationService. Update HTTP handlers and
frontend client types to match.
@NathaelB NathaelB marked this pull request as ready for review January 6, 2026 23:42
@NathaelB NathaelB requested a review from LeadcodeDev January 7, 2026 08:57
Return Response<ProviderResponse> instead of raw domain entities,
converting providers to DTOs via into() (including mapping Vec items).
Use Response::Created for create handler and clean up related imports.
@NathaelB NathaelB merged commit 4989fc0 into main Jan 7, 2026
8 checks passed
@NathaelB NathaelB deleted the 642-ldap-api---provider-crud-endpoints branch January 7, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[LDAP] API - Provider CRUD endpoints

2 participants