-
Notifications
You must be signed in to change notification settings - Fork 77
Add PIN management functionality #214
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
Add PIN management functionality #214
Conversation
|
Hmm, I disagree with the
I'd buy that we'd need to "deal" with this if this routine were used on the critical path for cryptographic operations, but that's not the case: What's your concrete motivation for introducing this, actually? Do you have a (presumably noncompliant ;) ) token that fails to work without this addition, but does work when this is added? :) I'm just asking to figure out if there's a better way to deal with your issue than the above. |
|
Hi Matthias! We are a relatively large organisation with a large number of tokens. A frustratingly large number of those tokens trigger decoding exceptions, resolved by the change. I presume that the simple fallback with the In any case, I would be happy to create a separate PR for that, to be discussed separately. |
552732b to
33e9cdd
Compare
Works for me, yes! EDIT: ...but indeed, as a separate PR, if possible. If you're rebasing this branch anyway, I'd be happy to review this PR for the PIN management functionality alone. |
MatthiasValvekens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions re: possible functionality duplication / unclear API contracts.
|
Awesome! Thank you for your review. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #214 +/- ##
=========================================
Coverage ? 90.17%
=========================================
Files ? 15
Lines ? 2625
Branches ? 29
=========================================
Hits ? 2367
Misses ? 255
Partials ? 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Much cleaner changeset now :). If this passes CI it's good to go in my book (just some linting issues, it seems).
EDIT: Ah, right, a test for the logout functionality would also be nice.
|
I removed the logout functionality, together with the login. Can readd it, though. And I will add tests for init_pin |
|
Ah, oops, brain fart. No worries in that case. Covering If you're up for adding the logout function back (I do think that one is at least potentially sensible), by all means do, but I'm OK with merging this as-is as soon as the linter's happy. |
|
ruff format is happy now, and init_pin is tested. it's a bit of a roundtrip, but it works. |
|
Great! I expected those tests with |
|
It was a pleasure! Thank you for being so helpful and clear. |
ccb6c27 to
7351769
Compare
|
The commit message of the squashed commit still contains the mention of the additional change that has been removed from this PR. Not too important, but it would make the history lie. |
7351769 to
1ff2114
Compare
|
Yep, I noticed just in time before merging 😅 |
This PR is an adaption of #161