BankID proxy API
Note
BankID API acts as proxy in front of the actual BankID backend. Apart from the ability to deploy anywhere this feature also adds value through support for multiple client certificates and augmenting the response before sending the response back to the calling client.
When using the BankID proxy API from PhenixID, the api interface is close to identitical to the BankID API. So moving to PhenixID bankid proxy API should not mean a great deal of work for api client developers.
General notes
This API is to be considered as a connection point for other applications requiring BankID authentication or signing.
It is not to be exposed without additional security layers such as firewalls and TLS encryption.
Prerequisites
- Keystore to communicate with BankID backend.
- Upload keystore to PhenixID Authentication Services using Scenario.
- Copy the keystore ID to be used in next step.
Configuration
Configure the module according to the example:
{
"name": "com.phenixidentity~phenix-api-bankid",
"enabled": "true",
"id" : "bankid_proxy_api",
"config": {
"tenant": [{
"id": "<id of the calling tenant>",
"password": "<password of the calling tenant>",
"bankidStore": "<id of the keystore fetched in previous step.>",
"mode": "test",
"version": "v6.0",
"onCompletePipeID":"<id of the pipe executed after an completed bankID request.>"
}],
"http_configuration_ref": "<id of the http configuration used. [OPTIONAL] If omitted, the default http configuration is used.>"
}
}
Tenant configuration
PhenixID BankID supports multiple calling tenants. Each tenant must be configured in order to be allowed calling the API.
Name | Description | Default value |
---|---|---|
id | id used to identify the calling tenant | N/A |
password | password used to identify the calling tenant | N/A |
bankidStore | Id of the uploaded keystore used when communicating with the actual BankID API. | N/A |
mode | If using the BankID test environment or node (prod/test is valid value) | prod |
version | Sets the version of the BankID API to use. You will most likely want to enter "v6.0" here and use BankID Secure Start since older versions are deprected/not working. |
v5.1 |
onCompletePipeID | If configured, PAS will perform a pipe execution before sending the respons back to the calling client. The data recieved from the pipe will be added to the BankID response and sent to the client. | N/A |
Enable the module
Add the id of the module to NODE_GROUPS->module_refs. Example:
"module_refs": "bankid_proxy_api,.........."