-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prism-agent): add deactivate DID endpoint (#326)
* fix(castor): id in DIDDoc match a given DID * fix(castor): fix did doc id must match DID resolved * feat(prism-agent): expose DID deactivation endpoint * feat(prism-agent): update OAS did metadata * feat(prism-agent): add DID deactivation check before performing DID update * pr cleanup
- Loading branch information
Showing
8 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...-api/src/main/scala/io/iohk/atala/agent/walletapi/model/error/UpdateManagedDIDError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package io.iohk.atala.agent.walletapi.model.error | ||
|
||
import io.iohk.atala.castor.core.model.did.CanonicalPrismDID | ||
import io.iohk.atala.castor.core.model.error.DIDOperationError | ||
import io.iohk.atala.castor.core.model.error.{DIDOperationError, DIDResolutionError} | ||
|
||
sealed trait UpdateManagedDIDError | ||
|
||
object UpdateManagedDIDError { | ||
final case class DIDNotFound(did: CanonicalPrismDID) extends UpdateManagedDIDError | ||
final case class DIDNotPublished(did: CanonicalPrismDID) extends UpdateManagedDIDError | ||
final case class DIDAlreadyDeactivated(did: CanonicalPrismDID) extends UpdateManagedDIDError | ||
final case class InvalidArgument(msg: String) extends UpdateManagedDIDError | ||
final case class KeyGenerationError(cause: Throwable) extends UpdateManagedDIDError | ||
final case class WalletStorageError(cause: Throwable) extends UpdateManagedDIDError | ||
final case class OperationError(cause: DIDOperationError) extends UpdateManagedDIDError | ||
final case class ResolutionError(cause: DIDResolutionError) extends UpdateManagedDIDError | ||
final case class CryptographyError(cause: Throwable) extends UpdateManagedDIDError | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters