Skip to content

feat(subplat): add b2b poc#20654

Draft
StaberindeZA wants to merge 1 commit into
mainfrom
feat-b2b-poc
Draft

feat(subplat): add b2b poc#20654
StaberindeZA wants to merge 1 commit into
mainfrom
feat-b2b-poc

Conversation

@StaberindeZA
Copy link
Copy Markdown
Contributor

@StaberindeZA StaberindeZA commented May 27, 2026

Proof of Concept - Do Not Merge

Because

  • The entitlements service has considered building a business to business feature which would provide access to services without requiring a subscription managed by Stripe.

This pull request

  • Adds a proof of concept for a business to business entitlements feature, built for the Mozilla VPN Free Access Program and immediate launch of the feature, while still keeping in mind ongoing development of the entitlements infrastructure as well as allowing for future scalability and extensibility.
  • Read list of emails from Strapi and what capabilities should be provided to these users.
  • On auth-server /profile query, return the relevant capability if the user email is in the list configured in Strapi.
  • Add webhook listener to payments-api that listens for changes in Strapi and then calls an API in auth-server, which broadcasts capability added or removed via event-broker to RPs.
  • Show Paid Subscriptions option to user that have access via a B2B subscription. On the subscription management page added a new section indicating services provided by the customers organization.

Issue that this pull request solves

Closes: PAY-3754

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).
  • I have manually reviewed all AI generated code.

How to review (Optional)

  • Key files/areas to focus on:
  • Suggested review order:
  • Risky or complex parts:

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

Because

- The entitlements service has considered building a business to
  business feature which would provide access to services without
  requiring a subscription managed by Stripe.

This commit

- Adds a proof of concept for a business to business entitlements
  feature, built for the Mozilla VPN Free Access Program and immediate
  launch of the feature, while still keeping in mind ongoing development
  of the entitlements infrastructure as well as allowing for future
  scalability and extensibility.
- Read list of emails from Strapi and what capabilities should be
  provided to these users.
- On auth-server /profile query, return the relevant capability if the
  user email is in the list configured in Strapi.
- Add webhook listener to `payments-api` that listens for changes in
  Strapi and then calls an API in auth-server, which broadcasts
  capability added or removed via event-broker to RPs.
- Show Paid Subscriptions option to user that have access via a B2B
  subscription. On the subscription management page added a new section
  indicating services provided by the customers organization.

Closes PAY-3754
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.

1 participant