Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

PSD2 TPP Demo App

This repository contains a Node.js Express application demonstrating a PSD2 Third Party Provider (TPP). The application is meant for testing purposes and integration example for PSD2 interfaces.

For more information, see https://op-developer.fi

The demo is hosted at https://example.successful-personal-finances.business.

Pre-requisities

  • Install Node.js
  • Install VS Code for development
  • Install Typescript runner for development
  • Optionally install Jest plugin for VS Code
npm install -g jest
npm install -g ts-node
npm install -g typescript
npm install -g aws-cdk

Getting started

  • Clone the repository and install dependencies

  • Generated a HTTPS certificate for localhost development as OAuth flow always redirects to a HTTPS address only

Location for server.crt and server.key is certs/localhost-server.

Place certificates to certs/client-cert/psd2-sandbox-prod/client.crt, certs/client-cert/psd2-sandbox-prod/key.pem and certs/client-cert/psd2-sandbox-prod/ssa-signing-key.pem.

  • Configure required secrets

You can configure secrets to psd2-sandbox-prod.localhost.secrets or fargate-deployment/bin/psd2-tpp-demo-conf.example.ts depending whether you run the service locally or in AWS.

# env/psd2-sandbox-prod.localhost.secrets
API_KEY=xxxx
CERT_PASSPHRASE=yyyy
SESSION_SECRET=zzzz
TPP_CLIENT_ID=tttt
TPP_CLIENT_SECRET=mmmm
  • Build and run the project
# Start the development version in localhost mode
# Secrets are read from env/psd2-sandbox-prod.localhost.secrets
npm run build && APP_ENVIRONMENT=psd2-sandbox npm start

Navigate to https://localhost:8181 to check everything is running correctly. You can add the server certificate to your trusted certs or you need to ignore the browser warning.

About

Example application that demonstrates how a TPP could use OP's PSD2 API's

Resources

License

Releases

No releases published

Packages

No packages published