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

upgrade ucanto in authorize feat branch #540

Closed

Conversation

gobengo
Copy link
Contributor

@gobengo gobengo commented Mar 15, 2023

No description provided.

Alan Shaw and others added 16 commits February 9, 2023 16:20
I think we'll want to make higher level combinations of these at some point, but this
translates the various operations from @Bengo's observable (https://observablehq.com/d/95bfec64fbb3c2d1) into functions that clients can use
Motivation:
* there weren't any tests that test access-api + access-client agent, so
this adds a stub for one
* it includes a lot of type adjustments that should make it easier to
write more tests in followup
* specifically it removed some old types I had tried to make when
testing access delegate. I added a new `ServiceInvoke` type that is
better than the ones I had made before. This is useful for making an
'invoke' function that will handle a subset of the caps available on
`Service` but expect the same success/fail types as Service
1) save session principal in agent data
2) delegate more permissions from space to account (I think this is working?)
3) add newCreateSpace that can be renamed to get this working with the cli

I haven't tested actual space uploads yet, but moving on to that next!
… registerSpaces + validate-email handler (#530)

Previously a lot of logic to handle `access/confirm` was in the
`validate-email` flow, since that is the most common place we'd receive
that invocation (after clicking email sent by `access/authorize`
handler).

However, this logic can be expressed as a `ServiceMethod` on invocation
of `access/confirm`, and validate-email can call that.
This allows us to also self-issue `access/confirm` in some tests, e.g.
in ucanto-test-utils `registerSpaces` and send it to our service to
handle, which is only enabled when node env is TEST for now.

Benefits:
* wherever we use ucanto-test-utils `registerSpaces`, we'll be
accurately testing the `access/confirm` + `provider/add` flow (not
old/deprecated `voucher/redeem`)

---------

Co-authored-by: Travis Vachon <travis@dag.house>
1) use new allows method from a ucanto branch to do so
2) throw errors in new space create flow if we adding a provider or delegating access fails
3) claim delegations after authorizing
@gobengo gobengo closed this Mar 15, 2023
Peeja pushed a commit to storacha/upload-service that referenced this pull request Jan 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.0.0](storacha/w3ui@react-uploader-v4.2.0...react-uploader-v5.0.0)
(2023-07-25)


### ⚠ BREAKING CHANGES

* upgrade access client, ucanto and other packages
([storacha#530](storacha/w3ui#530))

### Features

* upgrade access client, ucanto and other packages
([storacha#530](storacha/w3ui#530))
([8e7321b](storacha/w3ui@8e7321b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Travis Vachon <travis.vachon@protocol.ai>
Peeja pushed a commit to storacha/upload-service that referenced this pull request Jan 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[5.0.0](storacha/w3ui@react-uploader-v4.2.0...react-uploader-v5.0.0)
(2023-07-25)


### ⚠ BREAKING CHANGES

* upgrade access client, ucanto and other packages
([storacha#530](storacha/w3ui#530))

### Features

* upgrade access client, ucanto and other packages
([storacha#530](storacha/w3ui#530))
([4449018](storacha/w3ui@4449018))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Travis Vachon <travis.vachon@protocol.ai>
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.

2 participants