Commit a5bd424
committed
feat(cms): Enable legal terms customization via Strapi
Because:
* We want to enable customization of the legal terms shown for certain clientIds or services
This commit:
* Adds `LegalTermsConfigurationManager` to query legal terms from Strapi by `clientId` or `service` identifier
* Creates GraphQL query, types, and utility classes for legal terms in `libs/shared/cms`
* Implements `/cms/legal-terms` REST endpoint in fxa-auth-server with localization support
* Integrates FTL translation merging using the same pattern as relying party configs
* Adds `useLegalTermsState()` React hook in fxa-settings to fetch legal terms via REST API
* Updates `TermsPrivacyAgreement` component to display custom RP legal terms when available
* Passes legal terms through Integration layer to Signin/Signup/Index pages
Closes #FXA-123711 parent af25995 commit a5bd424
39 files changed
Lines changed: 1919 additions & 567 deletions
File tree
- packages
- fxa-auth-server
- bin
- lib/routes
- utils/cms
- test/local/routes
- utils/cms
- fxa-settings/src
- components
- AppLayout
- App
- TermsPrivacyAgreement
- lib/integrations
- models
- integrations
- pages
- Index
- Signin
- SigninUnblock
- Signup
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments