Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Pocket/fxa-webhook-proxy

Repository files navigation

FxA Webhook Proxy (aka Firefox Accounts Webhook Proxy Service)

Important

This repo has been moved to Pocket's Monorepo

Receives FxA events as webhook requests and proxies the requests to the User Service through the Client API.

Service page (internal): FxA Webhook Proxy

Architecture

image

Source: Miro

Folder structure

  • the infrastructure code is present in .aws
  • .docker contains local setup
  • .circleci contains circleCI setup
  • gateway_lambda contains code for the lambda that listens for events from FxA and sends them to the SQS created in .aws/src/main.ts
  • sqs_lambda contains code for the lambda that consumes messages from the SQS created in .aws/src/main.ts

Develop Locally

As this repo consists of only two lambdas, there isn't much to run locally aside from tests.

First, install dependencies in all folders:

npm run setup

Running Spec Tests

npm run test-spec

Running Functional Tests

docker compose up
npm run test-functional

About

Receives FxA events as webhook requests and proxies the requests to the User Service through the Client API.

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages