-
Notifications
You must be signed in to change notification settings - Fork 28
perf(PAYINS-1388): Add native AOT support #372
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
Open
tl-Roberto-Mancinelli
wants to merge
25
commits into
main
Choose a base branch
from
aot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
83f0f97
perf(PAYINS-1388): Enable AOT
tl-Roberto-Mancinelli d0693d8
version
tl-Roberto-Mancinelli 9a9c4b3
Replaced Jose.JWT.Headers
tl-Roberto-Mancinelli b4f13b1
update version
tl-Roberto-Mancinelli 44fc9d1
remove Jose.JWT.DecodeBytes
tl-Roberto-Mancinelli 0afb11f
update version
tl-Roberto-Mancinelli cf2ae91
simplify code
tl-Roberto-Mancinelli e7f73b9
remove Jose-jwt
tl-Roberto-Mancinelli 14f233b
minor
tl-Roberto-Mancinelli ea3b7e4
version
tl-Roberto-Mancinelli 0e3d6b7
Merge branch 'main' into aot
tl-Roberto-Mancinelli 0feda46
split deps based on TFM
tl-Roberto-Mancinelli edb2ea4
fix warnings
tl-Roberto-Mancinelli c5ec170
update version
tl-Roberto-Mancinelli 6883735
add unit tests
tl-Roberto-Mancinelli 28937f5
address pr comments
tl-Roberto-Mancinelli 49e4d27
pr comments
tl-Roberto-Mancinelli 8a69519
use Span-based API for better performance
tl-Roberto-Mancinelli 9341bc9
address PR comments
tl-Roberto-Mancinelli c525352
update benchmark
tl-Roberto-Mancinelli 0231971
extract ComputeJwsSigningHash in util
tl-Roberto-Mancinelli a7b0ea6
use ASCII in pre net5 path
tl-Roberto-Mancinelli e2006e7
Merge branch 'main' into aot
tl-Roberto-Mancinelli b629baa
update version
tl-Roberto-Mancinelli 643ba65
rc8
tl-Roberto-Mancinelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| using System; | ||
|
|
||
| namespace TrueLayer.Signing | ||
| { | ||
| /// <summary>Internal Base64Url encoding/decoding for AOT compatibility.</summary> | ||
| internal static class Base64Url | ||
| { | ||
| /// <summary>Encode bytes to base64url string.</summary> | ||
| public static string Encode(byte[] input) => Convert.ToBase64String(input).TrimEnd('=').Replace('+', '-').Replace('/', '_'); | ||
|
|
||
| /// <summary>Decode base64url string to bytes.</summary> | ||
| public static byte[] Decode(string input) | ||
| { | ||
| var base64 = input.Replace('-', '+').Replace('_', '/'); | ||
| switch (input.Length % 4) | ||
| { | ||
| case 2: base64 += "=="; break; | ||
| case 3: base64 += "="; break; | ||
| } | ||
| return Convert.FromBase64String(base64); | ||
| } | ||
| } | ||
|
tl-Roberto-Mancinelli marked this conversation as resolved.
|
||
| } | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.