openbanking-sandbox

module
v0.0.0-...-4b0e152 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: Apache-2.0

README

openbanking-sandbox

alt Cool Sandbox diagram

Overview

This sandbox demonstrates Cloudentity's ACP capabilities for handling Openbanking scenarios.

The sandbox consists of the following components:

  • ACP - Cloudentity's Authorization Control Plane
    • single node cockroachdb
    • hazelcast
  • tpp - technical third party provider
  • financroo - advanced third party provider which allows to connect multiple banks
  • consent-page - sample bank's consent page
  • consent-self-service - self service for consent management
  • consent-admin - admin portal for tpps consent management
  • bank - sample bank APIs

Setup

We're using docker-compose to spin the sandbox.

Prerequisites
  • docker 19.03.x
  • docker-compose 1.25.x
  • make
  • contact sales@cloudentity.com to get credentials to be able to download ACP docker image

For Windows you need to use WSL.

Quickstart

To run the sandbox use the following command:

make run

It will download prebuild images from the docker hub.

If you finish playing with the sandbox you can turn it off:

make clean
Credentials

Once everything is up, open TPP technical app:

https://localhost:8090

Use one of the following users to log in:

  • user / p@ssw0rd!
  • user2 / p@ssw0rd!
  • user3 / p@ssw0rd!

You can also use a Financroo app (use test / p@ssw0rd! to log in):

https://localhost:8091

Consent self service (use the same credentials as for TPP):

https://localhost:8085

Consent admin (credentials: admin / p@ssw0rd!):

https://localhost:8086

If you would like to access ACP's admin portal (credentials: admin / p@ssw0rd!) use:

https://localhost:8443/app/default/admin
Custom deployment

By default, when you run sandbox using a quickstart, it's deployed locally and accessible using the localhost domain.

You can clone this repository and make some changes in .env file to run ACP / openbanking apps on some remote hosts with a different domains assigned.

If you want to run sandbox on a single host with a given domain, modify the following environment variables:

ACP_URL=https://example.com:8443
APP_HOST=example.com

And then run the following command on example.com host:

make run

If you want to split the deployment i.e. deploy ACP components on the one host and the rest of openbanking sandbox apps on the other, modify the following environment variables:

ACP_URL=https://acp-host.com:8443
ACP_INTERNAL_URL=https://acp-host.com:8443
ACP_HOST=apps-host.com

Then to run ACP components, execute the following command on acp-host.com host:

make run-acp-apps

And then to run openbanking apps, execute the following command on apps-host.com host:

make run-apps
Developer commands

To build docker images locally run:

make build

To run the sandbox with local images, use:

make run-dev
Run e2e tests locally
cd tests
npm i
yarn run cypress open

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL