[PR #25] [MERGED] Add a way to view a user's details #497

Closed
opened 2026-02-27 08:17:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lldap/lldap/pull/25
Author: @nitnelave
Created: 7/5/2021
Status: Merged
Merged: 7/5/2021
Merged by: @nitnelave

Base: mainHead: user_view


📝 Commits (8)

  • b29e82b Remove outdated config sample
  • c32c6b2 Add a request message for user details
  • 2ebe312 Add a method to get a single user's details
  • da7239e Add a route to server user details
  • a799ef2 Remove useless clones
  • fca7b04 Implement per-user guards for the user details endpoint
  • 3458e83 Propagate the admin status to the top component
  • 911df8e Implement client view for the user details

📊 Changes

14 files changed (+320 additions, -57 deletions)

View changed files

📝 app/src/api.rs (+25 -5)
📝 app/src/app.rs (+71 -22)
📝 app/src/cookies.rs (+1 -1)
📝 app/src/lib.rs (+1 -0)
📝 app/src/login.rs (+5 -5)
app/src/user_details.rs (+90 -0)
lldap_config.toml (+0 -2)
📝 model/src/lib.rs (+5 -0)
📝 src/domain/handler.rs (+2 -0)
📝 src/domain/sql_backend_handler.rs (+42 -0)
📝 src/infra/auth_service.rs (+39 -11)
📝 src/infra/tcp_api.rs (+38 -6)
📝 src/infra/tcp_backend_handler.rs (+1 -0)
📝 src/infra/tcp_server.rs (+0 -5)

📄 Description

The new API endpoint "/api/user/<user_id>" returns the user's details, and is accessible by both admins and the user themselves.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/lldap/lldap/pull/25 **Author:** [@nitnelave](https://github.com/nitnelave) **Created:** 7/5/2021 **Status:** ✅ Merged **Merged:** 7/5/2021 **Merged by:** [@nitnelave](https://github.com/nitnelave) **Base:** `main` ← **Head:** `user_view` --- ### 📝 Commits (8) - [`b29e82b`](https://github.com/lldap/lldap/commit/b29e82b7d38d82206a89b908d23e645c7ae0a443) Remove outdated config sample - [`c32c6b2`](https://github.com/lldap/lldap/commit/c32c6b2b5da5b8a5a821fc27a2fb2246bad5faab) Add a request message for user details - [`2ebe312`](https://github.com/lldap/lldap/commit/2ebe312d15d4b9c190f90fb83f8e7e4faaf0aed9) Add a method to get a single user's details - [`da7239e`](https://github.com/lldap/lldap/commit/da7239e22137703fa88262e2b6ce996cb0628eb8) Add a route to server user details - [`a799ef2`](https://github.com/lldap/lldap/commit/a799ef23765f38c790b25653e4ccdf1edf29ba69) Remove useless clones - [`fca7b04`](https://github.com/lldap/lldap/commit/fca7b0458699c62103afa3e92a178c44554a0016) Implement per-user guards for the user details endpoint - [`3458e83`](https://github.com/lldap/lldap/commit/3458e83a781edf53f2d14e969f9fff48c14430c1) Propagate the admin status to the top component - [`911df8e`](https://github.com/lldap/lldap/commit/911df8eabbd435863753eccc059a9a62c031bd22) Implement client view for the user details ### 📊 Changes **14 files changed** (+320 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `app/src/api.rs` (+25 -5) 📝 `app/src/app.rs` (+71 -22) 📝 `app/src/cookies.rs` (+1 -1) 📝 `app/src/lib.rs` (+1 -0) 📝 `app/src/login.rs` (+5 -5) ➕ `app/src/user_details.rs` (+90 -0) ➖ `lldap_config.toml` (+0 -2) 📝 `model/src/lib.rs` (+5 -0) 📝 `src/domain/handler.rs` (+2 -0) 📝 `src/domain/sql_backend_handler.rs` (+42 -0) 📝 `src/infra/auth_service.rs` (+39 -11) 📝 `src/infra/tcp_api.rs` (+38 -6) 📝 `src/infra/tcp_backend_handler.rs` (+1 -0) 📝 `src/infra/tcp_server.rs` (+0 -5) </details> ### 📄 Description The new API endpoint "/api/user/<user_id>" returns the user's details, and is accessible by both admins and the user themselves. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:17:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#497
No description provided.