https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43077
--- Comment #14 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Thanks Martin. Addressed in the follow-up patch: 1. decode_claims returns undef on an undefined or empty token, without warning or logging (and uses Try::Tiny instead of eval). 2. Negative tests in t/Koha/Token.t: tampered payload, wrong key, alg:none with and without a signature, garbage, expired token, token without an id, plus generate() and check_jwt() subtests. 3. typ/aud binding: filed as bug 44080, as it affects every caller. 4. Behaviour changes are documented in the POD. Two are reverted instead: generate({ type => 'JWT' }) without an id returns undef again (as on main), and encode_claims throws Koha::Exceptions::WrongParameter when the claims are not a hashref. 5. check_jwt delegates to check(), and the _add_default_jwt_params POD is fixed. The generate() synopsis no longer shows a secret. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
