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

feat: get access/claim authorization wait function working #666

Merged
merged 19 commits into from
Mar 29, 2023

Conversation

travis
Copy link
Member

@travis travis commented Mar 28, 2023

Build on @Bengo's access/claim-polling-based waitForDelegationOnSocket replacement. This will let us replace the websocket-based authorization wait function which makes the UX much more responsive - rather than waiting an indeterminate amount of time after clicking the email link, the process completes almost immediately with this change.

The wait function is also pluggable so we that clients can implement different polling strategies, which should make it easier to test and use a receipt-based version of this in the future.

Added tests for this that use sinon to mock out service handlers and ensure they are called the right number of times.

Build on @Bengo's `access/claim`-polling-based `waitForDelegationOnSocket` replacement. This will let us replace the websocket-based authorization wait function which makes the UX much more responsive - rather than waiting an indeterminate amount of time after clicking the email link, the process completes almost immediately with this change.

The wait function is also pluggable so we that clients can implement different polling strategies, which should make it easier to test and use a receipt-based version of this in the future.
authorizeWaitAndClaim defaults to using the new `access/claim` polling based auth flow and and should react to email clicks much more quickly
@travis travis marked this pull request as ready for review March 28, 2023 23:22
@gobengo gobengo self-requested a review March 29, 2023 15:25
@travis travis merged commit 83971de into main Mar 29, 2023
@travis travis deleted the feat/polling-access-claim-waiter branch March 29, 2023 18:24
travis pushed a commit that referenced this pull request Mar 29, 2023
🤖 I have created a release *beep* *boop*
---


##
[11.1.0](access-v11.0.1...access-v11.1.0)
(2023-03-29)


### Features

* get `access/claim` authorization wait function working
([#666](#666))
([83971de](83971de))


### Bug Fixes

* verify proofs exist for requested delegation capabilities
([#670](#670))
([068e801](068e801))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
alanshaw pushed a commit that referenced this pull request Mar 29, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.5.0](w3up-client-v5.4.0...w3up-client-v5.5.0)
(2023-03-29)


### Features

* add capabilities option type for authorize
([#687](#687))
([bf262dd](bf262dd))
* get `access/claim` authorization wait function working
([#666](#666))
([83971de](83971de))


### Bug Fixes

* missing file from byo principal
([6b2384e](6b2384e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
gobengo pushed a commit that referenced this pull request Apr 11, 2023
Build on @Bengo's `access/claim`-polling-based
`waitForDelegationOnSocket` replacement. This will let us replace the
websocket-based authorization wait function which makes the UX much more
responsive - rather than waiting an indeterminate amount of time after
clicking the email link, the process completes almost immediately with
this change.

The wait function is also pluggable so we that clients can implement
different polling strategies, which should make it easier to test and
use a receipt-based version of this in the future.

Added tests for this that use `sinon` to mock out service handlers and
ensure they are called the right number of times.
gobengo pushed a commit that referenced this pull request Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[11.1.0](access-v11.0.1...access-v11.1.0)
(2023-03-29)


### Features

* get `access/claim` authorization wait function working
([#666](#666))
([1d0e208](1d0e208))


### Bug Fixes

* verify proofs exist for requested delegation capabilities
([#670](#670))
([a0cea8f](a0cea8f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
gobengo pushed a commit that referenced this pull request Apr 11, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.5.0](w3up-client-v5.4.0...w3up-client-v5.5.0)
(2023-03-29)


### Features

* add capabilities option type for authorize
([#687](#687))
([57697ad](57697ad))
* get `access/claim` authorization wait function working
([#666](#666))
([1d0e208](1d0e208))


### Bug Fixes

* missing file from byo principal
([ac9b413](ac9b413))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

3 participants