Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve pubkey not found error handling (#4)
* Improve pubkey not found error handling When the public key identified by the {Alg, KID} tuple is not found on the IAM keystore server, it's possible to see errors like: (node1@127.0.0.1)140> epep:jwt_decode(SampleJWT). ** exception error: no function clause matching public_key:do_verify(<<"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTcwNTIwLTAwOjAwOjAwIn0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjEyMzIx"...>>, sha256, <<229,188,162,247,201,233,118,32,115,206,156, 169,17,221,78,157,161,147,46,179,42,219,66, 15,139,91,...>>, {error,not_found}) (public_key.erl, line 782) in function jwtf:public_key_verify/4 (src/jwtf.erl, line 212) in call from jwtf:decode/3 (src/jwtf.erl, line 30) Modify key/1 and public_key_not_found_test/0 to account for keystore changing from returning an error tuple to throwing one.
- Jenkins
- (#2658)
- advance-dbseq-during-indexing-retry
- (#2658)
- cache_grv
- (#2658)
- delete-session-cookie-samesite-main
- (#2658)
- fdbmain
- (#2658)
- feat/access-3.x
- (#2658)
- feat/access-master-clean
- (#2658)
- feat/add-same-site-secure/master
- (#2658)
- jenkins-frapa-autodetect_spidermonkey_version
- (#2658)
- master
- (#2658)
- merge-devcontainer-jenkins
- (#3946, #2658)
- prevent-multiple-responses
- (#2658)
- prometheus-endpoint2
- (#2658)
- simplify
- (#2658)
- update-erlfmt
- (#2658)