Giter Club home page Giter Club logo

obp-hola's Introduction

OBP-Hola

The Open Bank Project Hola Application can be used to demonstrate and test the Open Banking OAuth2 and consent creation and usage via OBP API and Ory Hydra. It supports both UK and Berlin Group styles. Hola is written in Java / Spring Boot.

Works in conjunction with the OBP Hydra Identity Provider You might find additional install instructions here

Can be driven automatically (for test purposes) using OBP Selenium

prepare truststore

Suppose the OBP-API server domain is: api-mtls.ofpilot.com

Suppose the Hydra server domain is: oauth2.api-mtls.ofpilot.com

  • check server side certificate

    openssl s_client -showcerts -connect api-mtls.ofpilot.com:443

    openssl s_client -showcerts -connect oauth2.api-mtls.ofpilot.com:443

  • save the OBP-API server certificate to file ofpilot.cer, save Hydra server certificate to file hydra.cer

    openssl s_client -servername api-mtls.ofpilot.com -connect api-mtls.ofpilot.com:443 </dev/null 2>/dev/null | openssl x509 -inform PEM -outform DER -out ofpilot.cer

    openssl s_client -servername oauth2.api-mtls.ofpilot.com -connect oauth2.api-mtls.ofpilot.com:443 </dev/null 2>/dev/null | openssl x509 -inform PEM -outform DER -out hydra.cer

  • import ofpilot.cer and hydra.cer to truststore file ofpilot.jks, and put it in resources/cert folder

    keytool -import -alias ofpilot -keystore ofpilot.jks -file ofpilot.cer

    keytool -import -alias hydra -keystore ofpilot.jks -file hydra.cer

prepare keystore

  • Generate user.key and user.pem files and convert them to cert.p12.

    openssl pkcs12 -export -in user.pem -inkey user.key -certfile user.pem -out user.p12

  • convert cert.p12 to file user.jks

    keytool -importkeystore -srckeystore user.p12 -srcstoretype pkcs12 -destkeystore user.jks

config application.properties file

## keystore and truststore files can be local files or web resources, as example:
mtls.keyStore.path=file:///Users/<some path>/cert/user.jks
#mtls.keyStore.path=http://<some domain>/user.jks
mtls.keyStore.password=<keystore password>
mtls.trustStore.path=file:///Users/<some path>/cert/ofpilot.jks
#mtls.trustStore.path=http://<some domain>/ofpilot.jks
mtls.trustStore.password=<truststore password>

Screenshots of the app

Landing page

alt text

Berlin Group Flow

alt text

Consents

alt text

Get Accounts, Balances and Transactions

alt text

Copyright TESOBE GmbH 2020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.