trustbloc / sandbox

Demonstration environments
Apache License 2.0
21 stars 31 forks source link

VaultServer Create Authorization API not supporting TrustBloc DID #799

Closed rolsonquadras closed 3 years ago

rolsonquadras commented 3 years ago

Error while calling Vault Server create-authorization API

failed to create vault authorization: http request: failed to read response body for status 500: {"errMessage":"requesting party to DidURL: not a valid did:key identifier (not a base58btc multicodec): did:trustbloc:AiMP4:EiCUrP_33P0_sxJroDFtHVGmP5wdi_z-kL9PAoIwIJxPiA"}

This is due to vault-server not supporting TrustBloc DID Method. The comparator creates the TrustBloc DID and this is used as "relyingparty" property in create-authorization API.

soluchok commented 3 years ago

@rolsonquadras it is done in https://github.com/trustbloc/edge-service/pull/633 FYI: requesting party should be like this did:trustbloc:2M5ym:EiDL6JLccjj5-laF1KJjIiOGKlF2FRg5R0kl8CvNfvEPCw#893f6e66-09a4-4291-86e9-cab23bedaf52 where #893f6e66-09a4-4291-86e9-cab23bedaf52 part is required

rolsonquadras commented 3 years ago

The RP DID comes from comparator config, which inturn comes from CSH. Currently, CSH supports only DID:KEY. Also, vault ID supports only DID:KEY.

rolsonquadras commented 3 years ago

This has been implemented.