Skip to content

JWT-SVID: typ header not set in issued tokens #46

@rsharath

Description

@rsharath

Summary

The JWT-SVID specification recommends setting `typ: JWT` in the JOSE header of issued tokens. The current implementation omits the `typ` header entirely. While this is not a hard MUST, it reduces interoperability with verifiers that use `typ` to distinguish token types, and is inconsistent with the spec's guidance.

Location

JWT construction in `internal/service/credential.go` (or wherever the JWT header is assembled).

Fix

Add `"typ": "JWT"` to the JWT header at issuance time.

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspec-complianceDeviation from SPIFFE/WIMSE/JWT-SVID specs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions