endorser-authentication #2

Merged
jose merged 6 commits from endorser-authentication into master 2026-07-16 12:32:40 +00:00
Owner
No description provided.
jose added 6 commits 2026-07-10 13:09:54 +00:00
Expose the Endorser API base URL from the environment (defaulting to production) so later auth work can call it without hardcoding.
Introduce checkAuth so callers can verify Endorser acceptance of a JWT without dealing with HTTP details.
Gate /notifications/register on Endorser JWT acceptance while leaving the local testMode bypass unchanged.
Extract requireEndorserAuth middleware and apply it to /notifications/refresh so both endpoints use the same check while keeping the local test bypass.
Return 503 when Endorser cannot be reached and keep 401 for rejected JWTs, with clearer server-side diagnostics and generic client messages.
Describe when register/refresh verify with Endorser, keep the testMode bypass notes, and list ENDORSER_URL in the env table.
jose merged commit c4f34c8882 into master 2026-07-16 12:32:40 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trent_larson/notification-wakeup-service#2