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:
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