-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move http signature related code to http-signature-utils package (
#797) * feat(http-signature-utils): initial commit * chore(http-signature-utils): update lockfile * fix(http-signature-utils): fix package.json * fix: add http-signature-utils to tsconfig * fix: include http-signature-utils in gh workflow * fix: gh workflow build deps * fix: builds * feat(HSU): pass keyId * feat(HSU): add Dockerfile and add app to local infrastructure * feat(HSU): move content digest creation into HSU * Revert "feat(HSU): move content digest creation into HSU" This reverts commit f6eae9c. * feat(MAP): load private key * chore: fix build:deps * fix(MAP): graphql url * feat(HSU): add content headers to app * fix(HSU): remove `conent-type` and `content-length` headers from app * feat(HSU): add content digest header to app * fix(HSU): allow for lower case headers * feat(HSU): move sig verification from auth to HSU * fix: export and imports * feat(HSU): move sig verification to HSU * refactor(HSU): remove koa context from HSU * fix(backend): middleware context * fix(backend): imports * fix(HSU): remove conent type and length headers from app response * fix(HSU): add missing dependency * fix: request URL * fix(local): readd redis network * fix(HSU): removing whitespace * feat(local): enable sig validation * test(HSU): add tests * fix: types * refactor(auth): remove console.log * fix(MAP): quote fees * docs(HSU): add Readme * feat(HSU): add postman scripts * fix(HSU): formatting * fix(HSU): add postman scripts to lintignore file * refactor(HSU): verification * fix(HSU): key tmp dir * refactor(infrastructure): rename key files * chore(auth): remove jose * refactor(open-payments): use createHeaders from utils package * style(HSU): rename validateHttpSigHeaders and verifySigAndChallenge * refactor(auth): only store keyId, not entire key * refactor: remove JWKWithRequired * refactor(HSU): remove unnecessary type cast * chore: update gh workflow actions version * chore(HSU): move postman scripts out of src * test(HSU): add positive header validation tests * style(HSU): rename verification -> validation
- Loading branch information
1 parent
ac84eb1
commit 73e250d
Showing
57 changed files
with
1,164 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
public | ||
generated | ||
dist | ||
build | ||
build | ||
postman-scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MC4CAQAwBQYDK2VwBCIEIEqezmcPhOE8bkwN+jQrppfRYzGIdFTVWQGTHJIKpz88 | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MC4CAQAwBQYDK2VwBCIEICxfM9mUurUGnwlMMQEDclDEQnX7c49BoGKOB48URBxO | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.