-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |