-
Notifications
You must be signed in to change notification settings - Fork 26
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
FOLIO-3253 POC tweak login to avoid users-bl #1101
base: master
Are you sure you want to change the base?
Conversation
POC refactor of login to avoid `users-bl`, which has lots of dependencies, in favor of `authn/login`, which has very few. This is not intended to be pretty (obviously, the extra requests need cleaning up and error handling) but just to demonstrate that it is possible to login from the UI against a minimal set of back-end and front-end modules. Refs FOLIO-3253
BigTest Unit Test Statistics 1 files ±0 1 suites ±0 1m 18s ⏱️ + 1m 3s For more details on these failures, see this check. Results for commit e572131. ± Comparison against base commit 17719ac. This pull request removes 5 and adds 7 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
@zburke This work falls into the category of "never urgent, always important". What does it take — either organizationally or technically — to get this happen? Now that I am once more running a "minimal" FOLIO backend in a VM on my desktop, and find myself allocation a ludicrous 20 Gb of memory to it, it's both ethically and practically intolerable that things should continue as they are. |
Pinging @wafschneider so he gets notified of further comments. |
@skomorokh and I are keen for this to get merged. @zburke, what hinders us? |
@MikeTaylor, @skomorokh: In talking with a few other folks including @skoczko and @mkuklis, our thinking around the best approach to FOLIO-3253 has shifted. This PR involves authenticating directly against mod-login (which has very few dependencies) but that endpoint just returns a token, nothing else. Thus, a side-effect is the need to then federate calls to (new) An alternative is to leverage the fact that mod-users-bl already handles mod-inventory (from when service points) as an optional dependency and could handle other mod-optional-thingies in the same way. That eliminates new backend work (no new
I am actively working on (1) and (2). |
That all makes sense -- thank you! |
Related to STCOR-650 this is the place that will have to be refactored: We will have to think about where to put it. It could live in ui-servicepoints handler and instead of coupling it with the ui-users we could trigger an event via |
That sounds right to me. |
POC refactor of login to avoid
users-bl
, which has lots ofdependencies, in favor of
authn/login
, which has very few. This is notintended to be pretty (obviously, the extra requests need cleaning up
and error handling) but just to demonstrate that it is possible to login
from the UI against a minimal set of back-end and front-end modules.
Refs FOLIO-3253