Ibanity 0.6.8
dotnet add package Ibanity --version 0.6.8
NuGet\Install-Package Ibanity -Version 0.6.8
<PackageReference Include="Ibanity" Version="0.6.8" />
<PackageVersion Include="Ibanity" Version="0.6.8" />
<PackageReference Include="Ibanity" />
paket add Ibanity --version 0.6.8
#r "nuget: Ibanity, 0.6.8"
#:package Ibanity@0.6.8
#addin nuget:?package=Ibanity&version=0.6.8
#tool nuget:?package=Ibanity&version=0.6.8
Ibanity .NET client library
This .NET Client library offers various services you can use in order to submit requests towards the Ibanity Platform.
Quick start
Configure the library using IbanityServiceBuilder.
Minimal configuration values are:
- The Ibanity URL
- Your application private key and public certificate as .pfx file (PKCS#12)
- The passphrase for the private key
var ibanityService = new IbanityServiceBuilder().
SetEndpoint("https://api.ibanity.com").
AddClientCertificate(
certificatePath,
certificatePassword).
Build();
You can then make use of Ponto Connect services through your IIbanityService instance.
var financialInstitutions = await ibanityService.PontoConnect.FinancialInstitutions.List();
All services are thread safe and can be configured as singleton if you want to leverage frameworks like IServiceProvider or Castle Windsor. To avoid exhausting client ports, you should use a single IIbanityService instance across your application.
Code samples
There are three sample projects available within this repository:
See ClientSample class for extended examples.
Use token to authenticate requests
A token is required to access most resource types.
var ibanityService = new IbanityServiceBuilder().
SetEndpoint("https://api.ibanity.com").
AddClientCertificate(
certificatePath,
certificatePassword).
AddPontoConnectOAuth2Authentication(
pontoConnectClientId,
pontoConnectClientSecret).
Build();
var token = await ibanityService.PontoConnect.TokenService.GetToken(refreshToken);
var accounts = await ibanityService.PontoConnect.Accounts.List(token);
// Once done, you have to save the refresh token somewhere, so you can use it later to get another token.
// Refresh token value contained within the token instance is automatically updated from time to time.
SaveToken(token.RefreshToken);
Perform custom requests to Ibanity
You can perform custom HTTP calls to Ibanity using the IApiClient.
It can be accessed by calling:
var lowLevelClient = ibanityService.PontoConnect.ApiClient;
Configure proxy
If you are using a Web application firewall or a proxy, you can configure it in the IbanityServiceBuilder, using one of these methods:
AddProxy(IWebProxy proxy);
AddProxy(Uri endpoint);
AddProxy(string endpoint);
var ibanityService = new IbanityServiceBuilder().
SetEndpoint("https://api.ibanity.com").
AddClientCertificate(
certificatePath,
certificatePassword).
AddProxy("https://internal.proxy.com").
Build();
Sign custom requests to Ibanity
If you want to sign HTTP requests, you can use the IHttpSignatureService from the library.
var signatureService = new HttpSignatureServiceBuilder().
SetEndpoint("https://api.ibanity.com").
AddCertificate(
certificateId,
certificatePath,
certificatePassword).
Build();
Configure HTTP timeouts
var ibanityService = new IbanityServiceBuilder().
SetEndpoint("https://api.ibanity.com").
AddClientCertificate(
certificatePath,
certificatePassword).
SetTimeout(TimeSpan.FromSeconds(30)).
Build();
Verify and parse webhook events
var webhookEvent = await ibanityService.Webhooks.VerifyAndDeserialize(
payload, // webhook body
signature); // webhook 'Signature' header
switch (webhookEvent)
{
case SynchronizationSucceededWithoutChange synchronizationEvent:
Console.WriteLine(synchronizationEvent.SynchronizationSubtype);
break;
...
}
Certificates
Creating PFX certificate file
You may need to convert your certificate from .pem files to a .pfx file (also known as PKCS#12 format). You can use an OpenSSL command to do so:
openssl pkcs12 -export -in certificate.pem -inkey private_key.pem -out certificate.pfx
Where:
- certificate.pem is your existing certificate
- private_key.pem is the private key matching your existing certificate
- certificate.pfx is the resulting PKCS#12 file
You will have to enter the passphrase protecting the private_key.pem file, then (twice) the passphrase you want to use to encrypt the certificate.pfx file.
Loading certificate
Mutual TLS client certificate (as well as signature certificate) can be loaded in two different ways:
- Using the path to the file holding the certificate, and its passphrase.
- Using a
X509Certificate2instance, allowing you to load the certificate from a custom location you manage.
Azure App Service
When running on Azure App Service, even when loading the certificate from a file, Windows must access the certificate store. This may lead to an exception when the library is loading certificates.
You can use Azure CLI to allow this operation:
az webapp config appsettings set --name <app-name> --resource-group <resource-group-name> --settings WEBSITE_LOAD_USER_PROFILE=1
More information is available in App Service documentation.
Requirements
Either:
- .NET Framework 4.6.2 (or above)
- .NET Core 2.0 (or above)
- .NET 5.0 (or above)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 10.0.3 && < 14.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.6.8 | 123 | 6/4/2026 |
| 0.6.7 | 2,943 | 9/12/2025 |
| 0.6.6 | 14,671 | 5/14/2025 |
| 0.6.5 | 3,585 | 2/11/2025 |
| 0.6.4 | 946 | 12/20/2024 |
| 0.6.3 | 1,085 | 12/17/2024 |
| 0.6.2 | 228 | 11/27/2024 |
| 0.6.1 | 8,727 | 7/5/2024 |
| 0.6.0 | 12,178 | 5/27/2024 |
| 0.5.19 | 2,998 | 12/11/2023 |
| 0.5.18 | 251 | 12/9/2023 |
| 0.5.17 | 256 | 11/6/2023 |
| 0.5.16 | 2,623 | 9/6/2023 |
| 0.5.15 | 1,444 | 8/3/2023 |
| 0.5.14 | 242 | 7/26/2023 |
| 0.5.13 | 372 | 6/27/2023 |
| 0.5.12 | 763 | 6/1/2023 |
| 0.5.11 | 294 | 5/30/2023 |
| 0.5.10 | 1,319 | 4/24/2023 |
| 0.5.9 | 316 | 4/21/2023 |