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

Add issuer app #2083

Merged
merged 5 commits into from
Nov 28, 2023
Merged

Add issuer app #2083

merged 5 commits into from
Nov 28, 2023

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented Nov 28, 2023

This adds an app for the issuer canister, that allows authenticating & adding the authenticated user as an employee.

This includes a couple changes:

  • The issuer canister is updated to allow serving assets. Most of the code for asset serving is copied from test-app and II itself. This code will ideally be extracted and replaced with an asset serving library at some point. Includes a fix for certification by @frederikrothenberger. Thanks!
  • An app/ directory is added to the issuer. This is a simple React app with a button to authenticate and a button to add the authenticated user as an employee. The vite plugins are copied from the top-level app, and will need to be deduplicated at some point. However for now we keep the app independent from the rest of the II codebase.
  • An e2e test is added to show how to use the issuer app.

🟡 Some screens were changed

This adds an app for the issuer canister, that allows authenticating &
adding the authenticated user as an employee.

This includes a couple changes:

* The issuer canister is updated to allow serving assets. Most of the
  code for asset serving is copied from `test-app` and II itself. This
  code will ideally be extracted and replaced with an asset serving
  library at some point. Includes a fix for certification by
  @frederikrothenberger. Thanks!
* An `app/` directory is added to the issuer. This is a simple React app
  with a button to authenticate and a button to add the authenticated
  user as an employee. The vite plugins are copied from the top-level
  app, and will need to be deduplicated at some point. However for now
  we keep the app independent from the rest of the II codebase.
* An e2e test is added to show how to use the issuer app.
Copy link
Contributor

@frederikrothenberger frederikrothenberger left a comment

Choose a reason for hiding this comment

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

Already approved to unblock, only minor things. Thanks 👍

demos/vc_issuer/src/main.rs Show resolved Hide resolved
demos/vc_issuer/app/index.tsx Outdated Show resolved Hide resolved
@nmattia nmattia force-pushed the nm-issue-app branch 3 times, most recently from eac1d09 to 259c443 Compare November 28, 2023 13:14
@nmattia nmattia added this pull request to the merge queue Nov 28, 2023
Merged via the queue into main with commit d835649 Nov 28, 2023
53 checks passed
@nmattia nmattia deleted the nm-issue-app branch November 28, 2023 14:16
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.

2 participants