mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 00:05:50 +03:00
[PR #1240] Replace JWT blacklist with user login_enabled validation #1201
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#1201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/1240
Author: @coolguy1771
Created: 8/7/2025
Status: 🔄 Open
Base:
main← Head:feat/jwt-user-validation📝 Commits (5)
17189a1feat: add login_enabled database field users89ef5dcfix: streamline existing attribute check in migrate_to_v11 functionc7a9f91feat: add user login_enabled validation to JWT verification6022edfchore: run cargo fmt5efda23chore: remove unnecessary blank line in TcpBackendHandler trait📊 Changes
9 files changed (+114 additions, -21 deletions)
View changed files
📝
crates/domain-model/src/model/users.rs(+3 -0)📝
crates/ldap/src/core/user.rs(+2 -1)📝
crates/sql-backend-handler/src/sql_migrations.rs(+58 -1)📝
crates/sql-backend-handler/src/sql_tables.rs(+1 -1)📝
crates/sql-backend-handler/src/sql_user_backend_handler.rs(+1 -0)📝
server/src/auth_service.rs(+29 -14)📝
server/src/graphql_server.rs(+7 -4)📝
server/src/sql_tcp_backend_handler.rs(+10 -0)📝
server/src/tcp_backend_handler.rs(+3 -0)📄 Description
Summary
This PR replaces the JWT blacklist mechanism with real-time validation of the user's
login_enabledstatus.Changes
Removed JWT Blacklist:
Added User Status Validation:
is_user_login_enabledmethod to check user status from the databasecheck_if_token_is_validto be async and query the user's status on every JWT validationUpdated JWT Validation Flow:
Testing
Related Issues
Addresses part of #1193
Dependencies
Needs #1239 to be merged first
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.