Support adding custom JWT headers and also make the headers available after decoding

Created on 30 December 2021, almost 3 years ago
Updated 20 March 2023, almost 2 years ago

Problem/Motivation

When encoding the JWT, custom JWT headers (like crit) could be set. However the \Drupal\jwt\JsonWebToken\JsonWebTokenInterface does not have a way to set any additional headers.

Proposed resolution

Add option to provide headers and key ID as accepted by Firebase\JWT\JWT::encode

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom vijaycs85 London, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024