Larkspur BankFictional bank · No real moneyPowered byFaceSign

Verifiers on this demo

This page is for Companies building the approval step: the Company has its customer approve an operation on its own page, and a verifier it chose sends it signed evidence. It describes this demo's verifiers. It isn't part of the Personal Agent Protocol.

FaceSign verifierissuer https://pap.facesign.dev/verifiers/facesign, keys at jwks.json. Runs a live FaceSign check. On this demo only Larkspur Bank can start it.
Test verifierissuer https://pap.facesign.dev/verifiers/mock, keys at jwks.json, start URL https://pap.facesign.dev/verifiers/mock/start. Open to any Company. It runs no check and marks its evidence "mock": true.

Starting the test verifier

Send the customer's browser to the start URL with these query parameters.

client_idThe Company's https origin, with no path or trailing slash. It becomes the evidence's aud, unchanged.
subThe Company's own identifier for the account.
nonceA value the Company made for this check, 8 to 200 characters. It comes back in the evidence.
acr_valuesThe level or levels the Company accepts, space separated: https://facesign.ai/approval-assurance/acr/present or https://facesign.ai/approval-assurance/acr/affirmed.
max_ageOptional. Seconds. The test verifier always issues fresh evidence, so it only checks that this is a whole number.
operation_id, revision, operation_hashThe revision being approved. They come back in the evidence unchanged.
evidence_uriWhere the evidence is sent. An https URL on the client_id origin.
return_uriOptional. Where the customer can go afterwards. An https URL on the client_id origin.

An example, using the paid operation from the test vectors on Poppy issue 61:

https://pap.facesign.dev/verifiers/mock/start?client_id=https%3A%2F%2Fshop.example&sub=cust_81f2&nonce=4f1c9a2e7b3d5a60&acr_values=https%3A%2F%2Ffacesign.ai%2Fapproval-assurance%2Facr%2Faffirmed&max_age=600&operation_id=ord_9Qx2&revision=rev_2&operation_hash=GjsBnCznTZFnU3BKnpVYJh3_ZgsZa6HQVLKWbfIYTEc&evidence_uri=https%3A%2F%2Fshop.example%2Fpoppy%2Fevidence&return_uri=https%3A%2F%2Fshop.example%2Forders%2Ford_9Qx2

What comes back

The page shows the request and two buttons. On Issue test evidence the verifier sends one request, server to server, to evidence_uri:

POST <evidence_uri>
Content-Type: application/json

{"evidence": "<JWT>"}

The JWT has the header typ: poppy-assurance+jwt and alg: ES256, and is signed with the key at the test verifier's jwks_uri. Its claims:

{
  "iss": "https://pap.facesign.dev/verifiers/mock",
  "aud": "<client_id>",
  "sub": "<sub>",
  "iat": <when it was issued, in seconds>,
  "jti": "<unique to this evidence>",
  "nonce": "<nonce>",
  "acr": "<the level chosen on the page>",
  "amr": ["mock"],
  "match": "none",
  "operation_id": "<operation_id>",
  "revision": "<revision>",
  "operation_hash": "<operation_hash>",
  "checks": {},
  "mock": true
}

A sample receiver

https://pap.facesign.dev/verifiers/mock/sample-receiver accepts the same POST, checks the signature and the issuer, and echoes the claims. It keeps nothing. A Company's own endpoint also checks aud, nonce, the operation, the hash and the times against its own record.

Published by FaceSign, Inc. for testing. The test verifier proves nothing about a person and must not be accepted for real operations. Nothing on this page grants a license under any FaceSign patent or patent application.

About this demo