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

Make the verifier work as web application #53

Open
andrea-dintino opened this issue May 6, 2024 · 0 comments
Open

Make the verifier work as web application #53

andrea-dintino opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andrea-dintino
Copy link
Contributor

andrea-dintino commented May 6, 2024

[EDIT 16.10.24] probably this requires websocket @puria

The verifier app, when running on mobile, needs Firebase to receive communications.

In order to run it as a web app, we need basically to:

1. In the Verifier:

  • expose a route like /verification and map it on the Slangroom script that currently executes what is returned from Firebase
  • maybe (maybe not) some work needs to be done pass the output into the notification/history array
  • the QR code must be generated differently, specifically:
{
  "relying_party": "https://relying-party1.zenswarm.forkbomb.eu/relying_party/",
  "t": "https://verifier.myserver.com/verification",   <-- here goes the endpoint created above, with the URL that can be read from .env
  "exp": 1570000000,
  "m": "w",   <-- the "w" stands for "web" and this will help the Relying party understand how to communicate with the Verifier-web
  "request_uri": "https://admin.signroom.io/api/collections/templates/records?filter=%28id%3D%222rn9c5rfu54bwjw%22%29&fields=schema"
  "sid": "abcde",
  "id": "k86672rkeyfe9h7"  
}

Some minor facelift must be done in the GUI to make it look ok on a 16:9 screen - but no sweat here :-)

2. In the Relying Party:

  • There should be an IF ("m" == "w") then {pass the response via REST to "t"}

And I guess that we're good to go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant