πŸ”DIDAuth

If Query.type = β€œDIDAuth” , then it is a basic authentication request that does not include a verifiable credential : there is no selection of credential to propose to the user, call the function didkit.DIDAuth(did, β€œ{β€œ challenge ”:β€œ …. ”,β€œ domain ”:β€œ ….. ”}”, key) which will create an empty presentation used only for authentication. The presentation passed with the POST request will look like this:

{
  "@context": [
    "https://www.w3.org/2018/credentials/v1"
  ],
  "type": "VerifiablePresentation",
  "proof": {
    "type": "EcdsaSecp256k1Signature2019",
    "created": "2021-08-28T16:13:23.740Z",
    "challenge": "d602e96d-08cb-11ec-a6fa-8d5c53eaebfb",
    "domain": "talao.co",
    "jws" : "eyJhbGciOiJFUzI1NksiLCJjcml0IjpbImI2NCJdLCJiNjQiOmZhbHNlfQ..PgpEElB1tvcY9tdzK6EDKLvysj3vcH-zg5EIiGpk_q4m0NrAmjA81B7QdVvKllSzzfKw-1oTJuu4b4ihCvMXRwA"
  },
  "holder": "did:ethr:0xee09654eedaa79429f8d216fa51a129db0f72250"
}

If Query.type =”QueryByExample β€œthen it will take the user selects credentials in a list constituted according to the criteria specified in β€œcredentialQuery.example”. Then it will be necessary to call the didkit.issuePresentation (…) function as what is currently done (there is no change in the function call).

Refer to https://w3c-ccg.github.io/vp-request-spec/#query-by-example for more information.

Last updated