Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a list of active users that can use the system #22

Merged
merged 14 commits into from
Feb 1, 2024

Conversation

VKTB
Copy link
Collaborator

@VKTB VKTB commented Jan 24, 2024

Description

This PR stores a list of usernames in a text file (active_usernames.txt) in order to define who can use the system/login. This may have to be changed in future but a file for now would do. It modifies the login logic to check whether the provided username is part of the active username list before attempting to authenticate against the LDAP server.

Testing instructions

Add a set of instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build

Agile board tracking

closes #21

@VKTB VKTB requested a review from joelvdavies January 24, 2024 16:54
Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked well, single suggestion.

ldap_jwt_auth/auth/authentication.py Outdated Show resolved Hide resolved
Base automatically changed from implement-refresh-endpoint-#10 to main January 30, 2024 11:08
@VKTB VKTB requested a review from joelvdavies February 1, 2024 10:18
@VKTB VKTB merged commit 45b281f into main Feb 1, 2024
2 checks passed
@VKTB VKTB deleted the list-of-active-users-#21 branch February 1, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a list of active users that can use the system
2 participants