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: Add third-party issuer validation during SIOP auth request #256

Open
wants to merge 24 commits into
base: dev
Choose a base branch
from

Conversation

nanderstabel
Copy link
Contributor

@nanderstabel nanderstabel commented Jun 26, 2024

Description of change

This feature adds a demo validation of a credential issued by a third-party issuer. The check is done during a SIOP auth request. Visual feedback with issuer logo and checkmark.

Links to any relevant issues

this change is needed for:

How the change has been tested

Unit tests added in identity-wallet/src/state/did/validate_linked_verifiable_presentations.rs

This functionality can be manually tested against this UniCore branch. Please follow the test instructions there under "How the change has been tested" to spin up a UniCore instance and add a Linked Verifiable Presentation to it.

After setting up the UniCore instance, execute the Verification/siopv2_authorization_requests Request to obtain the Authorization Request string. Copy Paste this string in UniMe (in devmode) to see the result.

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@maiertech maiertech changed the title WIP Add Thuiswinkel validation Jun 28, 2024
@maiertech maiertech changed the title Add Thuiswinkel validation Add third-party issuer validation upon SIOP auth request Jun 28, 2024
@maiertech maiertech changed the title Add third-party issuer validation upon SIOP auth request feat: Add third-party issuer validation during SIOP auth request Jul 2, 2024
dependabot bot and others added 6 commits July 2, 2024 21:09
…#259)

Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.6.1 to 0.6.5.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](tailwindlabs/prettier-plugin-tailwindcss@v0.6.1...v0.6.5)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@ianvs/prettier-plugin-sort-imports](https://github.com/ianvs/prettier-plugin-sort-imports) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/ianvs/prettier-plugin-sort-imports/releases)
- [Changelog](https://github.com/IanVS/prettier-plugin-sort-imports/blob/main/CHANGELOG.md)
- [Commits](IanVS/prettier-plugin-sort-imports@v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: "@ianvs/prettier-plugin-sort-imports"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.3 to 3.2.5.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](sveltejs/prettier-plugin-svelte@v3.2.3...v3.2.5)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nander Stabel <[email protected]>
Bumps [prettier](https://github.com/prettier/prettier) from 3.3.0 to 3.3.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.3.0...3.3.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@nanderstabel nanderstabel marked this pull request as ready for review July 9, 2024 15:30
@daniel-mader daniel-mader added the Blocked An issue that is blocked by another issue or another blocker. label Jul 16, 2024
maiertech added a commit that referenced this pull request Jul 19, 2024
maiertech added a commit that referenced this pull request Jul 19, 2024
maiertech added a commit that referenced this pull request Jul 23, 2024
maiertech added a commit that referenced this pull request Jul 23, 2024
* Changes that are stuck in #256

* Update `empty_state` in store

* Fix more TS errors
@nanderstabel
Copy link
Contributor Author

Putting this back into Draft again since I now have the time to make the backend part of this PR more generic.

@nanderstabel
Copy link
Contributor Author

This PR is now updated to support 'generic' linked VPs. Please check the description for testing instructions :)

@nanderstabel nanderstabel marked this pull request as ready for review September 19, 2024 16:09

import Check from '~icons/ph/check-bold';
import QuestionMark from '~icons/ph/question-mark-bold';
import X from '~icons/ph/x-bold';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace icon imports with

import {CheckBoldIcon, QUestionMarkBoldIcon, XBoldIcon} from '$lib/icons';

This was part of a refactoring done while the PR was pending.

Copy link
Member

@maiertech maiertech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reveiwed frontend only.

Copy link
Member

@maiertech maiertech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check comment about icon imports. Small fix.

@daniel-mader daniel-mader removed the Blocked An issue that is blocked by another issue or another blocker. label Sep 20, 2024
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.

4 participants