Skip to content
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 wallet connect for the new object requests #236

Merged
merged 7 commits into from
Aug 18, 2024

Conversation

tatiana-nspcc
Copy link
Contributor

@tatiana-nspcc tatiana-nspcc commented Aug 14, 2024

Close #234.

Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 16.77632% with 253 lines in your changes missing coverage. Please review.

Project coverage is 21.88%. Comparing base (f093ac5) to head (a4827bb).
Report is 12 commits behind head on master.

Files Patch % Lines
handlers/apiserver/rest-server.gen.go 24.87% 130 Missing and 24 partials ⚠️
handlers/newObjects.go 0.00% 67 Missing ⚠️
handlers/objects.go 0.00% 29 Missing ⚠️
handlers/preflight.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #236      +/-   ##
==========================================
- Coverage   22.08%   21.88%   -0.21%     
==========================================
  Files          17       17              
  Lines        3319     3583     +264     
==========================================
+ Hits          733      784      +51     
- Misses       2450     2639     +189     
- Partials      136      160      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Header parameters `X-Bearer-Signature`, `X-Bearer-Signature-Key`, and query
parameters `walletConnect`, `fullBearer` were added to the new GET and HEAD
object requests `/objects/{cid}/by_id/{oid}` and `/objects/{cid}/by_attribute/{oid}`.
This ensures consistency of the requests using the new API, as the deprecated
requests use an authorization scheme with wallet connect.

Signed-off-by: Tatiana Nesterenko <[email protected]>
Header parameters `X-Bearer-Signature`, `X-Bearer-Signature-Key`, and query
parameters `walletConnect`, `fullBearer` were added to the new POST object
requests `/objects/{cid}`.
This ensures consistency of the requests using the new API, as the deprecated
requests use an authorization scheme with wallet connect.

Signed-off-by: Tatiana Nesterenko <[email protected]>
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, can fullBearerToken be avoided with autodetection? We can't avoid signature* set of parameters, but this one seems to be redundant.

@tatiana-nspcc
Copy link
Contributor Author

tatiana-nspcc commented Aug 18, 2024

So, can fullBearerToken be avoided with autodetection? We can't avoid signature* set of parameters, but this one seems to be redundant.

Yes, I've prepared a separate branch for it, but since it's not related to this issue, I was going to push it after this branch is merged into master.
It's here:
#238

@roman-khimov roman-khimov merged commit be1020a into master Aug 18, 2024
12 of 14 checks passed
@roman-khimov roman-khimov deleted the 234-fix-wallet-connect branch August 18, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WalletConnect get option is missing for request: GET /objects/{containerId}/by_id/{objectId}
3 participants