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

feat: add DID Auth in JWT #68

Merged
merged 3 commits into from
Mar 9, 2023
Merged

feat: add DID Auth in JWT #68

merged 3 commits into from
Mar 9, 2023

Conversation

youngjoon-lee
Copy link

@youngjoon-lee youngjoon-lee commented Mar 8, 2023

I implemented the W3C DID Authentication using JWT, as described in https://www.w3.org/Security/201812-Auth-ID/04_-_Day_1_-_Understanding_DID_Auth.pdf.

The spec also says that we can use Verifiable Presentation for DID Auth, as @H4NLee did in medibloc/vc-sdk#20.
But unfortunately, the well-known VC library in JS is not compatible with our Panacea DID Document (defined in protobuf). I think it's not simple to make it work. So, let's go with JWT for now, and make VP works later.
(It means that vc-sdk should support DID Auth in JWT as well: medibloc/vc-sdk#21).

@youngjoon-lee youngjoon-lee changed the title feat: add DID Auth JWT feat: add DID Auth in JWT Mar 8, 2023
@youngjoon-lee youngjoon-lee self-assigned this Mar 8, 2023
Copy link

@0xHansLee 0xHansLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

src/did/jwt.spec.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@gyuguen gyuguen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@youngjoon-lee youngjoon-lee merged commit 5132714 into master Mar 9, 2023
@youngjoon-lee youngjoon-lee deleted the feat/did-auth-jwt branch March 9, 2023 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants