Closed consideRatio closed 2 months ago
@minrk this isn't perfect, but it catches a few issues correctly at least I think.
Do you have work in progress related to actual fixes? This PR is 100% tests and docs currently.
I moved the manage_groups logic outside of update_auth_model
so it's unconditional, private, and not overrideable. Classes can implement get_user_groups
to govern this behavior. All tests are passing. Left one comment in-line about whether the mock responses should be kept realistic, because right now we are injecting group fields that aren't going to be there. I think that's fine for the purposes of what we want to test.
@minrk I pushed a few more commits and think I'm happy with things now - go for merge?
@consideRatio looks great, thank you!
Ensures
allowed_groups
andadmin_groups
works as in all authenticator classes by adding tests and resolving some implementation details. The fixes are to unreleased changes, so this is considered a maintenance PR rather than bugfix.