hyperledger / identus-cloud-agent

Identus Cloud Agent
https://identus.io/
Apache License 2.0
77 stars 20 forks source link

Support for the latest versions of Atala Mediator #876

Closed FabioPinheiro closed 7 months ago

FabioPinheiro commented 7 months ago

Is this a regression?

No

Description

The OEA doesn't support Peer DID with more than one service endpoint. Like the one used on the Atala Mediator version 0.13.0.

This was fixed by @mineme0110 on the upstream library. But to update the library we also need to address did:peer:2 spec changes. https://github.com/decentralized-identity/peer-did-method-spec/issues/64

Please provide the exception or error you saw

The error is in the regexp

2024-02-05 15:17:50 timestamp=2024-02-05T18:17:50.493731179Z level=ERROR thread=#zio-fiber-675 message="Connect - Error processing record: d1c0bc59-7b37-4331-82e1-b314df51745a " cause="Exception in thread "zio-fiber-" scala.Tuple2: (WalletAccessContext(00000000-0000-0000-0000-000000000000),io.iohk.atala.mercury.model.error.package$SendMessageError: Error when sending message: Invalid peer DID provided. Does not match peer DID regexp: did:peer:2.Ez6LSghwSE437wnDE1pt3X6hVDUQzSjsHzinpX3XFvMjRAm7y.Vz6Mkhh1e5CEYYq6JBUcTZ6Cp2ranCWRrv7Yax3Le4N59R6dd.SeyJ0IjoiZG0iLCJzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwIiwiciI6W10sImEiOlsiZGlkY29tbS92MiJdfQ.SeyJ0IjoiZG0iLCJzIjoid3M6Ly9sb2NhbGhvc3Q6ODA4MC93cyIsInIiOltdLCJhIjpbImRpZGNvbW0vdjIiXX0;)" location=io.iohk.atala.agent.server.jobs.ConnectBackgroundJobs.performExchange file=ConnectBackgroundJobs.scala line=204

Please provide the environment you discovered this bug in

Use the Atala Mediator version `0.13.0` or above with the latest version of the OEA.

Anything else?

No response

FabioPinheiro commented 7 months ago

This is fixed by #866 877