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.
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
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Customer | Pays and approves. | A user with a second factor and an enrolled phone. |
| Web app | The payment client. | An application with the FAPI 2.0 profile and a registered key. |
| Call-centre console | Starts payments for a caller. | A confidential application that may use CIBA. |
| Payments API | Moves the money. | A resource that verifies DPoP-bound tokens. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Pushed request | The app sends the authorization request from its server. | Returns a reference. The browser carries only that. |
| Client authentication | The app signs an assertion with its key. | No client secret exists. |
| Bound token | The app sends a proof with each call. | The token carries the thumbprint of the key. The API checks each proof. |
| Step-up | A payment above a limit needs a fresh second factor. | The API answers with a step-up challenge. |
| By phone | The console starts a payment for the caller. | The customer sees the request and approves it. The console polls for the token. |
| Evidence | An auditor asks for the record. | Every event is in the audit log and in the SIEM. |
Parts
| Part | Built with | Job |
|---|---|---|
| Web app | Vue, @lumoauth/client | Payment form and the "How this works" panel. |
| Payments API | Go, the Go SDK | RequireAccessToken with DPoP, and the step-up challenge. |
| Console | Go templates | The 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
- Pay a small bill, and read the pushed request in the panel.
- Copy the token and replay it with
curl: the API refuses it. - Pay a large bill, and pass the step-up.
- 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.