Skip to content

Re add JWT generation#44

Merged
steventux merged 4 commits intomainfrom
re-add-jwt-generation
Apr 7, 2025
Merged

Re add JWT generation#44
steventux merged 4 commits intomainfrom
re-add-jwt-generation

Conversation

@steventux
Copy link
Contributor

@steventux steventux commented Apr 3, 2025

Context

When we make a request to Communication Management API the call is echoed to NHS Notify.
As a client of both APIs we need to pass a valid JWT bearer token so that NHS Notify can identify the calling client.

See PR in Communication Management repo which presents the header if present:
NHSDigital/dtos-communication-management#207

Changes in this PR:

Includes a bearer token header which is generated from a private key and api key. This will be preferred by Communication Management API and forwarded to NHS Notify API.

This allows us to spy on modules and functions.
We can use these to configure real JWT bearer token generation, useful when we want to test against the integration version of NHS Notify.
@steventux steventux force-pushed the re-add-jwt-generation branch from 2f43115 to 83d9aa5 Compare April 3, 2025 14:03
@steventux steventux requested a review from dnimmo April 3, 2025 14:46
@steventux steventux changed the title Re add jwt generation Re add JWT generation Apr 3, 2025
@steventux steventux requested a review from a team April 7, 2025 12:01
@steventux steventux added this pull request to the merge queue Apr 7, 2025
Merged via the queue into main with commit 42f623e Apr 7, 2025
5 checks passed
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.

2 participants