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

refactor(backend): swap connection for methods #2054

Merged
merged 40 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d61f584
feat(backend): unauthenticated get incoming payment (#1952)
BlairCurrey Sep 25, 2023
5f35ed9
fix(backend): rm unused connection middleware
BlairCurrey Oct 10, 2023
2596f56
fix(backend): rm get connection from receiver get
BlairCurrey Oct 10, 2023
388a8ac
refactor(backend): toOpenPaymentsType
BlairCurrey Oct 12, 2023
a7beb8a
refactor(backend): rm getByConnection
BlairCurrey Oct 12, 2023
9c8bf5f
chore: update openapi spec
BlairCurrey Oct 17, 2023
77907db
fix(backend): update receiver
BlairCurrey Oct 17, 2023
5a25a69
fix(backend): rm connection tests
BlairCurrey Oct 18, 2023
250fdfd
refactor(backend): remove connectionService.getUrl
BlairCurrey Oct 18, 2023
fedc3d2
refactor(backend): rm Receiver.fromConnection
BlairCurrey Oct 18, 2023
3fce224
fix(backend): spsps middleware ctx type
BlairCurrey Oct 18, 2023
29c3154
refactor(backend): remove connection model
BlairCurrey Oct 18, 2023
ed18d01
refactor(backend): use updated mocks
BlairCurrey Oct 18, 2023
7a9dd1f
fix(backend): comment cleanup
BlairCurrey Oct 18, 2023
6253f50
refactor(backend): update to new open payments type
BlairCurrey Oct 18, 2023
63c1425
chore(backend): format
BlairCurrey Oct 18, 2023
8512740
fix(backend): re-rename paymentPointer -> walletAddress
BlairCurrey Oct 18, 2023
9e2ccc1
fix(backend): use receiver constructor
BlairCurrey Oct 18, 2023
43e2d5c
chore(backend): update open-payments packages
BlairCurrey Oct 18, 2023
04051d1
fix(backend): quote open payments type
BlairCurrey Oct 19, 2023
f00958a
fix(backend): receiver service tests
BlairCurrey Oct 19, 2023
f1e47bc
fix: re-rename paymentPointer -> walletAddress
BlairCurrey Oct 19, 2023
bd9e4a6
refactor(postman): rm connection, add method
BlairCurrey Oct 19, 2023
49ddb99
refactor(backend): remove IncomingPayment.connectionId
BlairCurrey Oct 19, 2023
05bcfcf
fix(backend): bad receiver model test setup
BlairCurrey Oct 19, 2023
318af8e
fix(backend): remove todo
BlairCurrey Oct 19, 2023
8d50c52
refactor(backend): rename connectionService to streamCredentialService
BlairCurrey Oct 19, 2023
8e2519f
refactor(backend): rename connection file and move to ilp
BlairCurrey Oct 19, 2023
8396970
refactor(backend): streamCredentialService.get to not return undefined
BlairCurrey Oct 20, 2023
6f3e16e
feat(backend): add method to quote create paths
BlairCurrey Oct 20, 2023
9fd8b16
fix(backend): rm debug log
BlairCurrey Oct 20, 2023
98039d9
Merge branch 'nl-open-payments-updates' into bc/1962/swap-connection-…
BlairCurrey Oct 20, 2023
e68b48e
fix(postman): rm extra port from url
BlairCurrey Oct 20, 2023
718d962
fix(backend): return empty methods for complete or expired incomingPa…
BlairCurrey Oct 20, 2023
5a4399a
fix(backend): toOpenPaymentsTypeWithMethods
BlairCurrey Oct 20, 2023
80b6f1f
refactor(backend): dont return stream credentials for complete or exp…
BlairCurrey Oct 20, 2023
4f1f583
fix(backend): use fixed open-payments paginationArgs
BlairCurrey Oct 20, 2023
b1b0941
fix(backend): add stream credential test cases
BlairCurrey Oct 20, 2023
d01ea18
refactor(backend): implement openapi request changes
BlairCurrey Oct 20, 2023
65fbef0
docs: fix typos in Postman
njlie Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions openapi/auth-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ info:
contact:
email: tech@interledger.org
servers:
- url: 'https://rafiki.money/auth'
- url: 'https://auth.rafiki.money'
tags:
- name: grant
description: Grant operations
Expand Down Expand Up @@ -49,29 +49,29 @@ paths:
Interaction instructions:
value:
interact:
redirect: 'https://rafiki.money/auth/4CF492MLVMSW9MKMXKHQ'
redirect: 'https://auth.rafiki.money/4CF492MLVMSW9MKMXKHQ'
finish: 4105340a-05eb-4290-8739-f9e2b463bfa7
continue:
access_token:
value: 33OMUKMKSKU80UPRY5NM
uri: 'https://rafiki.money/auth/continue/4CF492MLVMSW9MKMXKHQ'
uri: 'https://auth.rafiki.money/continue/4CF492MLVMSW9MKMXKHQ'
wait: 30
Grant:
value:
access_token:
value: OS9M2PMHKUR64TB8N6BW7OZB8CDFONP219RP1LT0
manage: 'https://rafiki.money/auth/token/dd17a202-9982-4ed9-ae31-564947fb6379'
manage: 'https://auth.rafiki.money/token/dd17a202-9982-4ed9-ae31-564947fb6379'
expires_in: 3600
access:
- type: incoming-payment
actions:
- create
- read
identifier: 'https://rafiki.money/bob'
identifier: 'https://ilp.rafiki.money/bob'
continue:
access_token:
value: 33OMUKMKSKU80UPRY5NM
uri: 'https://rafiki.money/auth/continue/4CF492MLVMSW9MKMXKHQ'
uri: 'https://auth.rafiki.money/continue/4CF492MLVMSW9MKMXKHQ'
'400':
description: Bad Request
'401':
Expand Down Expand Up @@ -108,9 +108,9 @@ paths:
actions:
- create
- read
identifier: 'https://rafiki.money/alice'
identifier: 'https://ilp.rafiki.money/alice'
limits:
receiver: 'https://rafiki.money/connections/45a0d0ee-26dc-4c66-89e0-01fbf93156f7'
receiver: 'https://ilp.rafiki.money/connections/45a0d0ee-26dc-4c66-89e0-01fbf93156f7'
interval: 'R12/2019-08-24T14:15:22Z/P1M'
debitAmount:
value: '500'
Expand All @@ -132,7 +132,7 @@ paths:
actions:
- create
- read
identifier: 'http://rafiki.money/bob'
identifier: 'http://ilp.rafiki.money/bob'
client: 'https://webmonize.com/.well-known/pay'
description: ''
description: Make a new grant request
Expand Down Expand Up @@ -169,16 +169,16 @@ paths:
value:
access_token:
value: OS9M2PMHKUR64TB8N6BW7OZB8CDFONP219RP1LT0
manage: 'https://rafiki.money/auth/token/dd17a202-9982-4ed9-ae31-564947fb6379'
manage: 'https://auth.rafiki.money/token/dd17a202-9982-4ed9-ae31-564947fb6379'
expires_in: 3600
access:
- type: outgoing-payment
actions:
- create
- read
identifier: 'https://rafiki.money/alice'
identifier: 'https://ilp.rafiki.money/alice'
limits:
receiver: 'https://rafiki.money/bob/incoming-payments/48884225-b393-4872-90de-1b737e2491c2'
receiver: 'https://ilp.rafiki.money/bob/incoming-payments/48884225-b393-4872-90de-1b737e2491c2'
interval: 'R12/2019-08-24T14:15:22Z/P1M'
debitAmount:
value: '500'
Expand All @@ -187,14 +187,14 @@ paths:
continue:
access_token:
value: 33OMUKMKSKU80UPRY5NM
uri: 'https://rafiki.money/auth/continue/4CF492MLVMSW9MKMXKHQ'
uri: 'https://auth.rafiki.money/continue/4CF492MLVMSW9MKMXKHQ'
wait: 30
Continuing During Pending Interaction:
value:
continue:
access_token:
value: 33OMUKMKSKU80UPRY5NM
uri: 'https://rafiki.money/auth/continue/4CF492MLVMSW9MKMXKHQ'
uri: 'https://auth.rafiki.money/continue/4CF492MLVMSW9MKMXKHQ'
wait: 30
'400':
description: Bad Request
Expand Down Expand Up @@ -264,17 +264,17 @@ paths:
value:
access_token:
value: OZB8CDFONP219RP1LT0OS9M2PMHKUR64TB8N6BW7
manage: 'https://rafiki.money/auth/token/8f69de01-5bf9-4603-91ed-eeca101081f1'
manage: 'https://auth.rafiki.money/token/8f69de01-5bf9-4603-91ed-eeca101081f1'
expires_in: 3600
access:
- type: outgoing-payment
actions:
- create
- read
identifier: 'https://rafiki.money/alice'
identifier: 'https://ilp.rafiki.money/alice'
limits:
interval: 'R12/2019-08-24T14:15:22Z/P1M'
receiver: 'https://rafiki.money/bob/incoming-payments/48884225-b393-4872-90de-1b737e2491c2'
receiver: 'https://ilp.rafiki.money/bob/incoming-payments/48884225-b393-4872-90de-1b737e2491c2'
debitAmount:
value: '500'
assetCode: USD
Expand Down
Loading