As a first step to re-factoring Auth.pm for bug 7174 we need to limit the scope of what Auth.pm does. Currently C4::Auth.pm handles both Authentication and Authorization which is the maximum of what it should do. Unfortunately it also handles in part the Context, the Session, and the Templates. For proper separation of concerns it should do none of these things! This bug should act as a central point for building a dependency tree of work required to factor out these supplementary roles.
Lol.. this just came up as a random bug on the Dashboard... still stands.. still love to find time to get to it... still too overwhelmed to get to it yet..
(In reply to Martin Renvoize from comment #1) > Lol.. this just came up as a random bug on the Dashboard... still stands.. > still love to find time to get to it... still too overwhelmed to get to it > yet.. As part of Bug 28325, I'm trying to create a Koha::Auth module that will hopefully just handle authentication and authorization. I feel like it's going to be slow going but useful. AuthN and AuthZ are passions of mine, so hopefully one day I'll iron things out a bit more... Bug 28325 revealed C4::Templates to be an absolute nightmare which probably needs more love from me first though...
Now I'm thinking Koha::Session, Koha::AuthZ, and Koha::AuthN (with submodules for various different authentication schemes...)