-
Notifications
You must be signed in to change notification settings - Fork 4
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
return application json encoded authorization response #39
Merged
Ryanmtate
merged 4 commits into
feat/add-req-obj-signing-alg-setter-wallet-metadata
from
fix/update-authorization-response-encoding
Nov 4, 2024
Merged
return application json encoded authorization response #39
Ryanmtate
merged 4 commits into
feat/add-req-obj-signing-alg-setter-wallet-metadata
from
fix/update-authorization-response-encoding
Nov 4, 2024
Conversation
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
Signed-off-by: Ryan Tate <[email protected]>
Ryanmtate
force-pushed
the
fix/update-authorization-response-encoding
branch
2 times, most recently
from
October 31, 2024 20:03
2509f66
to
f4c18a0
Compare
Signed-off-by: Ryan Tate <[email protected]>
Ryanmtate
force-pushed
the
fix/update-authorization-response-encoding
branch
from
October 31, 2024 20:04
f4c18a0
to
cf66d93
Compare
timothee-haudebourg
approved these changes
Oct 31, 2024
"failed to encode presentation_submission as 'application/x-www-form-urlencoded'", | ||
)?; | ||
|
||
Ok(encoded) |
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.
It works so I'm not going to block it but:
- there is no reason for the serialization to fail, so you can safely
unwrap
instead of returning aResult
- you could use a custom
struct
instead of aHashMap
to avoid memory allocations.
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.
commit ad3974c removes the hash map and uses a custom struct here instead.
Signed-off-by: Ryan Tate <[email protected]>
…r values Signed-off-by: Ryan Tate <[email protected]>
Juliano1612
approved these changes
Nov 1, 2024
Ryanmtate
merged commit Nov 4, 2024
d4834ac
into
feat/add-req-obj-signing-alg-setter-wallet-metadata
2 checks passed
Ryanmtate
added a commit
that referenced
this pull request
Nov 21, 2024
* use serde deserialize serialize derive for authorization response Signed-off-by: Ryan Tate <[email protected]> * update url encoding for auth response Signed-off-by: Ryan Tate <[email protected]> * fix unit tests Signed-off-by: Ryan Tate <[email protected]> * use custom struct for json string encoded authorization response inner values Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]>
Ryanmtate
added a commit
that referenced
this pull request
Nov 27, 2024
* add request object signing algorithm setter method Signed-off-by: Ryan Tate <[email protected]> * return application json encoded authorization response (#39) * use serde deserialize serialize derive for authorization response Signed-off-by: Ryan Tate <[email protected]> * update url encoding for auth response Signed-off-by: Ryan Tate <[email protected]> * fix unit tests Signed-off-by: Ryan Tate <[email protected]> * use custom struct for json string encoded authorization response inner values Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]> * bump serde_json_path version Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]>
Ryanmtate
added a commit
that referenced
this pull request
Dec 1, 2024
* add request object signing algorithm setter method Signed-off-by: Ryan Tate <[email protected]> * return application json encoded authorization response (#39) * use serde deserialize serialize derive for authorization response Signed-off-by: Ryan Tate <[email protected]> * update url encoding for auth response Signed-off-by: Ryan Tate <[email protected]> * fix unit tests Signed-off-by: Ryan Tate <[email protected]> * use custom struct for json string encoded authorization response inner values Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]> * bump serde_json_path version Signed-off-by: Ryan Tate <[email protected]> * Add temporary support for unencoded JWT authorization requests * Remove unnecessary comment * Start implementation for VpTokenItem From method for specific JsonPresentation Signed-off-by: Ryan Tate <[email protected]> Co-Authored-By: Joey Silberman <[email protected]> * use ssi 0.10.1 release Signed-off-by: Ryan Tate <[email protected]> * add data integrity conversion for vp token Additionally adds a check for authorization request vp formats supported to check cryptosuite against expected response formats. Signed-off-by: Ryan Tate <[email protected]> * update data integrity vp token from conversion Signed-off-by: Ryan Tate <[email protected]> * Feat/support unencoded jwt authorization requests (#40) * Add temporary support for unencoded JWT authorization requests * Remove unnecessary comment * use serde deserialize serialize derive for authorization response Signed-off-by: Ryan Tate <[email protected]> * update url encoding for auth response Signed-off-by: Ryan Tate <[email protected]> * fix unit tests Signed-off-by: Ryan Tate <[email protected]> * use custom struct for json string encoded authorization response inner values Signed-off-by: Ryan Tate <[email protected]> * allow unencoded authorization request Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]> Co-authored-by: Joey Silberman <[email protected]> Co-authored-by: Ryan Tate <[email protected]> * Update src/core/metadata/parameters/verifier.rs Co-authored-by: Jacob <[email protected]> Signed-off-by: Ryan Tate <[email protected]> --------- Signed-off-by: Ryan Tate <[email protected]> Co-authored-by: Joey Silberman <[email protected]> Co-authored-by: Joey Silberman <[email protected]> Co-authored-by: Jacob <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.