Hello all,
would it make sense to start a new pac4j project that would have "generic" tests that all pac4j-supported frameworks should pass?
Currently lots of them don't have any tests, and to me that feels bad.
My suggestion is to write a general test kit that contains for example:
- /public endpoint that is unprotected
- /authenticated that is protected
- /authorized?role=abc, protected and authorized by some role(s)
- /login/form for logging in via user/pass
- etc, whatever seems sensible to test
This would provide a nice common ground for all frameworks, and some existing unit tests could become obsolete.
It would be easier to add new frameworks too I think.
Do you think this would be useful?