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

Issue when JWT Credentials are stored in Pollux + the Agent #170

Closed
elribonazo opened this issue Feb 8, 2024 · 0 comments · Fixed by #171
Closed

Issue when JWT Credentials are stored in Pollux + the Agent #170

elribonazo opened this issue Feb 8, 2024 · 0 comments · Fixed by #171
Assignees

Comments

@elribonazo
Copy link
Contributor

elribonazo commented Feb 8, 2024

Is this a regression?

No

Description

When we convert a JWT Credential into a storable credential we are extracting most of its values but we are loosing the original JWT String (JTI).

The original JWT String contains the JWT Header ({"alg":"HS256","typ":"JWT"}), the credential and the signature splitted by a .

This is lost in JWTVerifiableCredentials.ts
The CredentialID field was extracting the JTI field from properties but the constructor was not setting the JTI property, so the original JWT string is lost.

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant