-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash in Keyset JWT decoding exception handler #210
Conversation
@Zil0-eo this should fix the issue |
It does, thanks :) Note that there are two places where |
Interestingly if I change this other occurrence to use get('kid') I get test failures in unexpected places ... |
Welp ... this is a problem:
|
I pushed a patch that "fixes" the tests, but I am pretty sure @tiran will scold me for that :-D |
Signed-off-by: Simo Sorce <simo@redhat.com>
a26dd91
to
6290faa
Compare
Go one step further than previously done and actually remove the _params dict and use the object as a real dict as intended. This should fix multiple issues with the current implementation including odd behaviors repr() and other functions that were not overriden properly. Signed-off-by: Simo Sorce <simo@redhat.com>
Direct use of k['kid'] was causing the excpetion itself to crash on keys that do not have a 'kid' with a keyError. Always use the .get accessor to pull 'kid' so that None is returned when not availble. Fixes latchset#209 Signed-off-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Simo Sorce <simo@redhat.com>
Changed code to remove _param use completely, and therefore implementing .get() is now not necessary anymore and I removed that commit. |
Fixes #209