Skip to main content

Brightpay

A payments app built to the strictest OAuth profile: pushed requests, tokens bound to a key, and a call-centre flow that the customer approves on their phone.

ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
JavaScript / TypeScriptGoVueGo net/http
Stack
Vue app, Go payments API, a call-centre console

Scenario​

A customer pays a bill from a web app. A regulator sets the bar: no part of the request may travel through the browser unprotected, and a stolen token must be useless. Later the customer calls the service line, and the person on the phone starts a payment that the customer approves in the app.

People and agents​

WhoRole in the applicationIdentity in LumoAuth
CustomerPays and approves.A user with a second factor and an enrolled phone.
Web appThe payment client.An application with the FAPI 2.0 profile and a registered key.
Call-centre consoleStarts payments for a caller.A confidential application that may use CIBA.
Payments APIMoves the money.A resource that verifies DPoP-bound tokens.

Flows​

FlowWhat happensWhat LumoAuth does
Pushed requestThe app sends the authorization request from its server.Returns a reference. The browser carries only that.
Client authenticationThe app signs an assertion with its key.No client secret exists.
Bound tokenThe app sends a proof with each call.The token carries the thumbprint of the key. The API checks each proof.
Step-upA payment above a limit needs a fresh second factor.The API answers with a step-up challenge.
By phoneThe console starts a payment for the caller.The customer sees the request and approves it. The console polls for the token.
EvidenceAn auditor asks for the record.Every event is in the audit log and in the SIEM.

Parts​

PartBuilt withJob
Web appVue, @lumoauth/clientPayment form and the "How this works" panel.
Payments APIGo, the Go SDKRequireAccessToken with DPoP, and the step-up challenge.
ConsoleGo templatesThe CIBA flow.

What the seed script creates​

  • An application with the FAPI 2.0 profile and its public key.
  • A CIBA application.
  • An adaptive MFA policy.
  • A log destination.

Walkthrough​

  1. Pay a small bill, and read the pushed request in the panel.
  2. Copy the token and replay it with curl: the API refuses it.
  3. Pay a large bill, and pass the step-up.
  4. Start a payment from the console, and approve it on the phone.

Before you run it​

  • Check that your plan includes the FAPI 2.0 profile and backchannel authentication in the plans matrix.