Skip to content

feat(subplat): add support for free access program#20764

Draft
StaberindeZA wants to merge 3 commits into
mainfrom
pay-3780-add-free-access-program
Draft

feat(subplat): add support for free access program#20764
StaberindeZA wants to merge 3 commits into
mainfrom
pay-3780-add-free-access-program

Conversation

@StaberindeZA

Copy link
Copy Markdown
Contributor

Because

  • Transfer ownership of the Mozilla VPN Free Access program to the SubPlat and EntPlat teams, which aligns with the goal of evolving the subscirption platform beyond subscriptions.
  • Allow other Mozilla services to also utilize the Free Access Program.

This pull request

  • Adds support for the Free Access Program, by broadcasting capabilities for enabled customers, even if they don't have a subscription.
  • 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-3780

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

- Transfer ownership of the Mozilla VPN Free Access program to the
  SubPlat and EntPlat teams, which aligns with the goal of evolving the
  subscirption platform beyond subscriptions.
- Allow other Mozilla services to also utilize the Free Access Program.

This commit

- Adds support for the Free Access Program, by broadcasting capabilities
  for enabled customers, even if they don't have a subscription.
- 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-3780
@StaberindeZA StaberindeZA force-pushed the pay-3780-add-free-access-program branch from 4111b63 to 3eef842 Compare June 18, 2026 17:03
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