-
Notifications
You must be signed in to change notification settings - Fork 6
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
payment transaction data #269
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
Signed-off-by: Kevin <[email protected]>
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.
minor findings
namespace WalletFramework.Core.Uri; | ||
|
||
public static class UriFun | ||
{ | ||
public static string ToStringWithoutTrail(this System.Uri uri) => uri.ToString().TrimEnd('/'); | ||
|
||
public static Option<System.Uri> TryToParseUri(string uriString) |
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.
unused. Is it needed?
@@ -0,0 +1,15 @@ | |||
namespace WalletFramework.Oid4Vc.Oid4Vp.Errors; | |||
|
|||
public record AccessDeniedError : VpError |
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.
- seems unused
- const can be private
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.
will be used by the fw consumer
@@ -0,0 +1,15 @@ | |||
namespace WalletFramework.Oid4Vc.Oid4Vp.Errors; | |||
|
|||
public record InvalidRequestError : VpError |
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.
- const can be private
/// associated with the OpenID4VP Authorization Request Url and Credentials Candidates that can be used to answer the | ||
/// request. | ||
/// </returns> | ||
// Task<Validation<AuthorizationRequestCandidates>> ProcessAuthorizationRequestUri( |
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.
leftover code
@@ -16,4 +16,6 @@ public class SelectedCredential | |||
/// Gets or Sets the Credential that is used to answer the input descriptor. | |||
/// </summary> | |||
public ICredential Credential { get; set; } = null!; | |||
|
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.
empty lines
|
||
public record InvalidTransactionDataError : VpError | ||
{ | ||
public const string Code = "invalid_transaction_data"; |
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.
can be private
@@ -312,7 +322,8 @@ from claim in sdJwtRecord.Claims | |||
|
|||
try | |||
{ | |||
return DeserializeObject<AuthorizationResponseCallback>(redirectUriJson); | |||
Uri callback = DeserializeObject<AuthorizationResponseCallback>(redirectUriJson); |
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.
debug leftover?
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.
for implicit casting
@@ -584,7 +640,8 @@ from claim in sdJwtRecord.Claims | |||
|
|||
try | |||
{ | |||
return DeserializeObject<AuthorizationResponseCallback>(redirectUriJson); | |||
Uri callbackUri = DeserializeObject<AuthorizationResponseCallback>(redirectUriJson); |
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.
debug leftover?
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.
see first message
Signed-off-by: Kevin <[email protected]>
Short description of what this resolves:
Changes proposed in this pull request:
Fixes: #