-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix String.fromBase64Url() extension.
Turns out that Base64.UrlSafe.decode() changed its behavior in Kotlin 2.0 and we missed this and EU PID documents no longer has SD-JWT VC credentials as a result. The root problem is that Base64.UrlSafe.decode() no longer ignores padding and our API contract in String.fromBase64Url() extension says it will. Fix this by using withPadding(PaddingOption.ABSENT_OPTIONAL) available in Kotlin 2.0.21. Also fix errornous credential.delete() call in the catch handler invoked when that call had already thrown. Test: EU PID now has SD-JWT VC credentials again. Signed-off-by: David Zeuthen <[email protected]>
- Loading branch information
Showing
4 changed files
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters