forked from openwallet-foundation/owl-agent-test-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openwallet-foundation#158 from TimoGlastra/afj
javascript: add issue credential, present proof
- Loading branch information
Showing
17 changed files
with
1,111 additions
and
260 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: test-harness-acapy-javascript | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout-test-harness | ||
uses: actions/checkout@v2 | ||
with: | ||
path: test-harness | ||
- name: run-von-network | ||
uses: ./test-harness/actions/run-von-network | ||
- name: run-indy-tails-server | ||
uses: ./test-harness/actions/run-indy-tails-server | ||
- name: run-test-harness-wo-reports | ||
uses: ./test-harness/actions/run-test-harness | ||
with: | ||
DEFAULT_AGENT: acapy-master | ||
BOB_AGENT: javascript | ||
TEST_SCOPE: "-t @AcceptanceTest -t ~@wip -t ~@RFC0011 -t ~@RFC0023 -t ~@DIDExchangeConnection" | ||
REPORT_PROJECT: acapy-b-javascript | ||
continue-on-error: true | ||
- name: run-send-gen-test-results-secure | ||
uses: ./test-harness/actions/run-send-gen-test-results-secure | ||
with: | ||
REPORT_PROJECT: acapy-b-javascript | ||
ADMIN_USER: ${{ secrets.AllureAdminUser }} | ||
ADMIN_PW: ${{ secrets.AllureAdminPW }} |
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,34 @@ | ||
name: test-harness-javascript-dotnet | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout-test-harness | ||
uses: actions/checkout@v2 | ||
with: | ||
path: test-harness | ||
- name: run-von-network | ||
uses: ./test-harness/actions/run-von-network | ||
- name: run-indy-tails-server | ||
uses: ./test-harness/actions/run-indy-tails-server | ||
- name: run-test-harness-wo-reports | ||
uses: ./test-harness/actions/run-test-harness | ||
with: | ||
DEFAULT_AGENT: javascript | ||
BOB_AGENT: dotnet-master | ||
TEST_SCOPE: "-t @AcceptanceTest -t ~@wip -t ~@RFC0011 -t ~@RFC0023 -t ~@DIDExchangeConnection -t ~@ProofProposal" | ||
REPORT_PROJECT: javascript-b-dotnet | ||
continue-on-error: true | ||
- name: run-send-gen-test-results-secure | ||
uses: ./test-harness/actions/run-send-gen-test-results-secure | ||
with: | ||
REPORT_PROJECT: javascript-b-dotnet | ||
ADMIN_USER: ${{ secrets.AllureAdminUser }} | ||
ADMIN_PW: ${{ secrets.AllureAdminPW }} |
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,33 @@ | ||
name: test-harness-javascript-javascript | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout-test-harness | ||
uses: actions/checkout@v2 | ||
with: | ||
path: test-harness | ||
- name: run-von-network | ||
uses: ./test-harness/actions/run-von-network | ||
- name: run-indy-tails-server | ||
uses: ./test-harness/actions/run-indy-tails-server | ||
- name: run-test-harness-wo-reports | ||
uses: ./test-harness/actions/run-test-harness | ||
with: | ||
DEFAULT_AGENT: javascript | ||
TEST_SCOPE: "-t @AcceptanceTest -t ~@wip -t ~@RFC0011 -t ~@RFC0023 -t ~@DIDExchangeConnection" | ||
REPORT_PROJECT: javascript | ||
continue-on-error: true | ||
- name: run-send-gen-test-results-secure | ||
uses: ./test-harness/actions/run-send-gen-test-results-secure | ||
with: | ||
REPORT_PROJECT: javascript | ||
ADMIN_USER: ${{ secrets.AllureAdminUser }} | ||
ADMIN_PW: ${{ secrets.AllureAdminPW }} |
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
Binary file modified
BIN
+43.3 KB
(150%)
aries-backchannels/javascript/aries-framework-javascript-v1.0.0.tgz
Binary file not shown.
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
26 changes: 26 additions & 0 deletions
26
aries-backchannels/javascript/server/src/controllers/CredentialController.ts
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,26 @@ | ||
import { Controller, Get, PathParams } from "@tsed/common"; | ||
import { Agent } from "aries-framework-javascript"; | ||
|
||
@Controller("/agent/command/credential") | ||
export class CredentialController { | ||
private agent: Agent; | ||
|
||
public constructor(agent: Agent) { | ||
this.agent = agent; | ||
} | ||
|
||
@Get("/:credentialId") | ||
async getCredentialById(@PathParams("credentialId") credentialId: string) { | ||
const indyCredential = await this.agent.credentials.getIndyCredential( | ||
credentialId | ||
); | ||
|
||
// TODO: add state 'done' check | ||
return { | ||
referent: indyCredential.referent, | ||
schema_id: indyCredential.schemaId, | ||
cred_def_id: indyCredential.credentialDefinitionId, | ||
credential: indyCredential.toJSON(), | ||
}; | ||
} | ||
} |
Oops, something went wrong.