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

Refactor AuthManager to use UserService and UserEntityInterface #3636

Merged
merged 8 commits into from
May 3, 2024

Conversation

demiankatz
Copy link
Member

@demiankatz demiankatz commented May 2, 2024

This PR refactors the AuthManager to use the new UserService instead of depending on the legacy Laminas table gateway. It also creates a new interface to encapsulate session persistence of user data. Right now, the UserService implements both the session and database interfaces, but these could theoretically be split apart in future.

This also adds Mink test coverage for some of the private user functionality and modernizes some of the code in the AuthManager test.

@demiankatz demiankatz marked this pull request as draft May 2, 2024 13:19
@demiankatz demiankatz changed the title Refactor AuthManager to use UserService instead of table object Refactor AuthManager to use UserService and UserEntityInterface May 2, 2024
@demiankatz demiankatz marked this pull request as ready for review May 2, 2024 13:28
module/VuFind/src/VuFind/Auth/Manager.php Outdated Show resolved Hide resolved
module/VuFind/src/VuFind/Db/Row/User.php Outdated Show resolved Hide resolved
@demiankatz demiankatz requested a review from EreMaijala May 2, 2024 18:12
@demiankatz
Copy link
Member Author

Thanks, @EreMaijala -- the issues you highlighted should be fixed now, and the test suite is still passing.

@demiankatz demiankatz added this to the 10.0 milestone May 3, 2024
@demiankatz demiankatz added the architecture pull requests that involve significant refactoring / architectural changes label May 3, 2024
@demiankatz demiankatz merged commit 1c72a68 into vufind-org:dev May 3, 2024
7 checks passed
@demiankatz demiankatz deleted the authmanager-refactor branch May 3, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture pull requests that involve significant refactoring / architectural changes
Projects
None yet
2 participants