-
Notifications
You must be signed in to change notification settings - Fork 24
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
Populate the userInfo in the various SearchManagementRepository methods #83
Populate the userInfo in the various SearchManagementRepository methods #83
Conversation
… into the database
Okay, this is complete! I'd love some review... @mkr would you be comfortable reviewing this PR? |
Hey @epugh , thanks for the changeset. I understand, the userInfo will only get extracted when SMUI's BasicAuthAuthenticatedAction is configured. But this method only allows the configuration of one user (no more). As there cannot be a distinctive user responsible for changes, SMUI does not write a username, but instead takes the username configured with Although, SMUI's CRUD operations should pass the username (like you suggest), it does not really make sense in case of BasicAuth, as there will always just exist one authenticated user for one editing user in the whole system. Am I missing something here? |
So, it did seem to work with BasicAuth, and you got back the anonymous search manager. However, with the username version of the auth, then it did populate. Longer term, I wonder if we end up deprecating BasicAuthAuthenticatedAction since a big part of the value of SMUI is tracking all the individual users. |
Yes, you are right. It might be a bit confusing as the userInfo field was introduced a few versions ago, but not used properly. mainly for anticipating multi-user support in the future as this might affect SMUI's data model. For BasicAuth I can review and add the changes (maybe introducing some additional tests), but then we maybe should think about removing the display username. I am also in favor of removing support of BasicAuth in a short to mid term. It was introduced for more illustrative purpose in the beginning anyway. But then, the question is where the userInfo will come from, and we are talking about alternative authentication methods suddenly. |
In order to move authentication in SMUI a step forward:
fyi: @epugh and @Paul-Blanchaert introduced a comprehensive evolution of the whole authentication (UX & backend) with: https://github.com/o19s/smui/tree/work_on_admin_screens_for_teams Thanks for that! This change will ultimately bring |
Remotely related: |
Just to create transparency (as @epugh and I had a discussion on that): I will skip the effort adding tests to ensure |
We support a history of users doing changes in the reporting, but right now that is NOT wired in. This PR adds support.