Skip to content

Commit

Permalink
Added README and example config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivard committed Jan 11, 2021
1 parent 13b9916 commit ba8b407
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# iDIN server

Add personal data received from Dutch banks via iDIN for use in your
[IRMA app](https://github.com/privacybydesign/irmamobile).


## Setting up the server

1. Add the server config file `src/main/resources/config.json`. As an example you can check
`config.EXAMPLE.json` in the root of this repository.
2. Add the iDIN library config file `src/main/resources/config.xml`. As an example you can
check `config.EXAMPLE.xml` in the root of this repository.
3. Supply the Java keystore on the location as specified in the iDIN library config. Make sure
that this file is available in the Java classpath. For example, include it in `src/main/resources/...`
or in `webapp/WEB-INF/classes`.
3. Run `gradle appRun` in the root directory of this project.

## Building new version of iDIN library

The iDIN library is included in this project as library in `/libs`. This library is built ourselves
based on the code of the [iDIN library of Currence](https://github.com/Currence-Online/iDIN-libraries-java/tree/master/Java/library).
Please check the documentation of this library how the JAR can be re-generated in case
you want to update this library.
28 changes: 28 additions & 0 deletions config.EXAMPLE.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="BankId.Merchant.MerchantID" value="" />
<add key="BankId.Merchant.SubID" value="0" />
<add key="BankId.Merchant.ReturnUrl" value="https://example.com/return" />

<add key="BankId.Acquirer.AcquirerID" value="" />
<add key="BankId.Acquirer.DirectoryUrl" value="" />
<add key="BankId.Acquirer.TransactionUrl" value="" />
<add key="BankId.Acquirer.StatusUrl" value="" />
<add key="BankId.TLS12.Enabled" value="true" />

<add key="BankId.KeyStore.Location" value="idin_keystore.jks" />
<add key="BankId.KeyStore.Password" value="keystore-passwd" />

<add key="BankId.Merchant.Certificate.Alias" value="self" />
<add key="BankId.Merchant.Certificate.Password" value="test" />
<add key="BankId.Acquirer.Certificate.Alias" value="bank-alias" />
<add key="BankId.SAML.Certificate.Alias" value="self" />
<add key="BankId.SAML.Certificate.Password" value="cert-passwd" />

<add key="BankId.Logs.Enabled" value="true" />
<add key="BankId.ServiceLogs.Enabled" value="true" />
<add key="BankId.ServiceLogs.Location" value="logs" />
<add key="BankId.ServiceLogs.Pattern" value="%Y-%M-%D/%h%m%s.%f-%a.xml" />
</appSettings>
</configuration>

0 comments on commit ba8b407

Please sign in to comment.