Authenticate the Membership Hub's status-callback endpoint - #16
Merged
Conversation
…ials) Closes the open leg of the CX-0006 callback contract. The Membership Hub registers its callback WITH authUrl/clientId/clientSecret (a second Hydra client, membership-hub-callback, seeded via the umbrella's ospIdp.clients); the Onboarding API now honors registered credentials — it fetches a client_credentials token from the registered authUrl and sends it as the bearer on every status callback, and DROPS the update if the token fetch fails rather than ever calling anonymously. The hub's /api/callbacks/** is a JWT resource server against the OSP IdP (in-cluster JWKS, external issuer-uri — host-derived in the install/redeploy scripts). Registrations without an authUrl keep working plain, so the e2e OSP contract test is unaffected. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017nfecB3UB91xPzX2r1fGA8
wolf4ood
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the open leg of the CX-0006 callback contract with OAuth2 client credentials on the existing OSP IdP (Ory Hydra):
authUrl/clientId/clientSecret(new seeded Hydra clientmembership-hub-callback) and validates the resulting bearer on/api/callbacks/**as a JWT resource server.authUrl, sent as the bearer on every status callback — a failed token fetch drops the update instead of ever calling anonymously.authUrlkeep working plain (e2e OSP contract test unaffected); install/redeploy scripts carry the hub's host-derivedissuer-uri.