The trust anchor for UK Open Banking. Owns the full consent lifecycle for account-access, domestic-payment and funds-confirmation — every other service validates against it.
The Consent microservice implements the BIAN Consent Administration service domain. It owns the OBIE consent lifecycle — AwaitingAuthorisation → Authorised → Consumed/Revoked — for all three consent types in the estate. The AISP, PISP and CBPII services never store consent themselves; they validate against this service before acting.
Speaks the OBIE contract on the wire. A selection of the endpoints this service exposes:
| Method | Path | Purpose |
|---|---|---|
| POST | /account-access-consents | Create an AIS (account information) consent |
| POST | /domestic-payment-consents | Create a PIS (payment) consent |
| POST | /funds-confirmation-consents | Create a CBPII (funds) consent |
| POST | /internal/consents/{id}/authorise | Stand-in for PSU authentication → Authorised |
| GET | /internal/consents/{id} | Service-to-service consent projection |
Clone the repo and start the service with an in-memory store. No database required to try it.
# clone and run (in-memory store, no infra) git clone https://github.com/Sreenivas-Sadhu-Prabhakara/openbank-consent.git cd openbank-consent && go run . # it is now serving OBIE on :8081 curl localhost:8081/health
openbank-bian rebuilds UK Open Banking as five consent-first services. Explore the rest: