-
Notifications
You must be signed in to change notification settings - Fork 1
Verify presentation tokens #1005
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
Merged
+687
−250
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
4b27b9b
feat: verify presentation token
Magnus-Kuhn 250237f
fix: allow empty tokens without password
Magnus-Kuhn e715acf
Merge branch 'release/openid4vc' into verify-presentation
Magnus-Kuhn d4b4f58
test: adapt app string processor test
Magnus-Kuhn 25e1098
test: remove happy path isolation test
Magnus-Kuhn 537ba85
refactor: adapt to optional password protection of empty token
Magnus-Kuhn db2b579
refactor: export verify use case
Magnus-Kuhn ff3a208
test: cleaner file copying into container
Magnus-Kuhn 45fc3cb
feat: improve unsupported VC type error message
Magnus-Kuhn 6a61c3a
test: add negative tests
Magnus-Kuhn 5dcc7e3
refactor: don't return classes in UseCases
Magnus-Kuhn eedcb09
test: re-add test skip
Magnus-Kuhn fb57fc7
chore: build schemas
Magnus-Kuhn 09d9819
test: null checks
Magnus-Kuhn ddd726c
test: split presentation token test
Magnus-Kuhn bb7a885
test: move startEudiplo into .dev
Magnus-Kuhn f5b555c
test: fix the split
Magnus-Kuhn e17e518
test: remove now obsolete startEudiplo function
Magnus-Kuhn 6c44bdd
Merge branch 'release/openid4vc' into verify-presentation
Magnus-Kuhn 760543f
fix: remove password protection from sendEmptyTokenParameters
Magnus-Kuhn 355c488
fix: undo credential lifetime increase
Magnus-Kuhn f8441bf
test: make tests independent of each other
tnotheis f47ac35
test: improve startOid4VcComposeStack helper method
tnotheis c535f42
chore: npm audit fix
tnotheis 3a712d0
chore: ignore vulnerability
tnotheis f75d8f1
test: rename eudiplo tenant
Magnus-Kuhn 1b66718
test: namings in app string processor test
Magnus-Kuhn f1b73a5
feat: simplify use case interface
Magnus-Kuhn b9c59f6
test: set correct NMSHD_TEST_BASEURL in oid4vc compose stack
tnotheis 9a9ed4e
Merge branch 'verify-presentation' of https://github.com/nmshd/runtim…
Magnus-Kuhn 9b618b9
fix: remove stack from error message
Magnus-Kuhn c8acdb3
test: adapt runtime tests
Magnus-Kuhn d02508d
test: re-add invalid nonce test
Magnus-Kuhn 721f7c7
test: use new helper functions more
Magnus-Kuhn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion
2
.dev/eudiplo-assets/test/info.json → .dev/eudiplo/config/test-tenant/info.json
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "name": "test", | ||
| "name": "test-tenant", | ||
| "description": "test tenant" | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,25 @@ | ||
| import path from "path"; | ||
| import { GenericContainer, StartedTestContainer, Wait } from "testcontainers"; | ||
|
|
||
| export async function startEudiplo(): Promise<StartedTestContainer> { | ||
| return await new GenericContainer("ghcr.io/openwallet-foundation-labs/eudiplo:3.1.2@sha256:0ea3a73d42a1eb10a6edc45e3289478b08b09064bd75563c503ed12be2ed2dc6") | ||
| .withEnvironment({ | ||
| PUBLIC_URL: "http://localhost:3000", // eslint-disable-line @typescript-eslint/naming-convention | ||
| MASTER_SECRET: "OgwrDcgVQQ2yZwcFt7kPxQm3nUF+X3etF6MdLTstZAY=", // eslint-disable-line @typescript-eslint/naming-convention | ||
| AUTH_CLIENT_ID: "root", // eslint-disable-line @typescript-eslint/naming-convention | ||
| AUTH_CLIENT_SECRET: "test", // eslint-disable-line @typescript-eslint/naming-convention | ||
| CONFIG_IMPORT: "true", // eslint-disable-line @typescript-eslint/naming-convention | ||
| CONFIG_FOLDER: "/app/assets/config", // eslint-disable-line @typescript-eslint/naming-convention | ||
| PORT: "3000" // eslint-disable-line @typescript-eslint/naming-convention | ||
| } as Record<string, string>) | ||
| .withExposedPorts({ container: 3000, host: 3000 }) | ||
tnotheis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| .withCopyDirectoriesToContainer([ | ||
| { | ||
| source: path.resolve(path.join(__dirname, "config")), | ||
Magnus-Kuhn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| target: "/app/assets/config" | ||
| } | ||
| ]) | ||
| .withStartupTimeout(60000) | ||
| .withWaitStrategy(Wait.forHealthCheck()) | ||
| .start(); | ||
| } | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.