trustbloc / adapter

Integration components to reduce complexity for RPs and Issuers
Apache License 2.0
8 stars 13 forks source link

[RP Adapter] Create new DID for AuthZ credential #369

Closed rolsonquadras closed 3 years ago

rolsonquadras commented 3 years ago

For AuthZ credential, the wallet needs to request for a new DID from RP adapter and pass it to the issuer.

Related to https://github.com/trustbloc/edge-agent/issues/334

rolsonquadras commented 3 years ago

Request:

{
   "@id":"089a0775-7e5f-4b96-912f-25532ec6853d",
   "@type":"https://trustbloc.dev/adapter/1.0/diddoc-req"
}

Response:

{
   "@id":"a8fb8f8f-4137-4e4e-9168-9b34f8d93fee",
   "@type":"https://trustbloc.dev/adapter/1.0/diddoc-resp",
   "~thread":{
          "thid":"089a0775-7e5f-4b96-912f-25532ec6853d"
   },
   "data":{
          "errorMsg":"<inCaseOfFailure>",
          "didDoc":{
                 <adapterDIDDoc>
          }
   }
}