Skip to content

kid not included in the JWT's header. #103

@GianfrancoMS

Description

@GianfrancoMS

Why was the kid removed from the JWT's header in ef51cf4?

Since the kid is not included, it makes the verification (https://github.com/openwallet-foundation-labs/oid4vc-ts/blob/main/packages/oauth2/src/common/jwk/jwks.ts#L21) impossible when there are multiple JWK in the JWK Set.

It works when there is only one JWK in the JWK Set, but that is not always the case.

I found this error when developing this feature at openwallet-foundation/credo-ts#2456.
I tried to host more than one key at /jwks and the verification of the JWT in POST /credential failed becaused the kid was not included in the JWT and there was more than one key in the JWK Set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions