Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create endpoint to revoke ID #3

Open
4 tasks
chinmoy12c opened this issue Dec 23, 2022 · 0 comments
Open
4 tasks

Create endpoint to revoke ID #3

chinmoy12c opened this issue Dec 23, 2022 · 0 comments
Assignees

Comments

@chinmoy12c
Copy link
Contributor

Description

Create an endpoint to revoke an ID.

Steps

  • Accept a DID id as input.
  • Authenticate a user as well as check if a user is an issuer of the ID being deleted (use Authorization MS).
  • Delete the DID from the database.
    • Is the DID just revoked or also deleted from the database?

Endpoint

POST /did/revoke

BODY

{
    id: did:example:EiCJA4TjViVPtE6m6E4EKpbR7EbyE2i5oPLVTxSAexUwPw
}

HEADERS

Authorization: [AUTH_TOKEN]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant