You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/articles/bankid.md
+122-8Lines changed: 122 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# ActiveLogin.Authentication.BankId
2
2
3
-
ActiveLogin.Authentication enables an application to support Swedish BankID (svenskt BankID) authentication and signing in .NET.
3
+
ActiveLogin.Authentication enables an application to support Swedish BankID (svenskt BankID) authentication, signing, payments, phone authentication, phone signing and digital ID card verification in .NET.
4
4
5
-
The most common scenbario is to use Active Login for BankID auth/login, so most of the concepts will be described from that perspective. We've designed sign to follow the same patterns and amke sure we can share things like certificate handling etc.
5
+
The most common scenario is to use Active Login for BankID auth/login, so most of the concepts will be described from that perspective. We've designed the other features to follow the same patterns and make sure we can share things like certificate handling etc.
6
6
7
7
## Table of contents
8
8
@@ -22,6 +22,7 @@ The most common scenbario is to use Active Login for BankID auth/login, so most
+[Using client certificate from Azure KeyVault](#using-client-certificate-from-azure-keyvault)
27
28
+[Using client certificate from custom source](#using-client-certificate-from-custom-source)
@@ -323,7 +324,7 @@ services
323
324
Once that is done you will be able to use these services in your application, for example in your controller:
324
325
325
326
*`IBankIdSignConfigurationProvider` : List the registered configuraitons (SameDevice / Other Device)
326
-
*`IBankIdSignService` : Initiate and resulve the result of sign flow
327
+
*`IBankIdSignService` : Initiate and resolve the result of sign flow
327
328
328
329
Here is a minimal sample. See `Standalone.MvcSample` for more details.
329
330
@@ -391,6 +392,113 @@ public class SignController : Controller
391
392
392
393
---
393
394
395
+
# Payment
396
+
397
+
Payment works very similar to sign and auth. You need to register both the common BankID logic (environment, cert etc) as well as the payment specific configration (devices).
@@ -489,6 +597,7 @@ If you want to apply some options for all BankID schemes, you can do so by using
489
597
```
490
598
491
599
Requirements can also be set dynamically for each authentication, see section [Resolve requirements on Auth request](#resolve-requirements-on-auth-request). To use dynamic requirements with signatures provide the requirements as part the `BankIdSignProperties`, see section [Sign](#sign).
600
+
To use dynamic requirements with payments provide the requirements as part the `BankIdPaymentProperties`, see section [Payment](#payment).
492
601
493
602
---
494
603
@@ -803,10 +912,11 @@ In this folder, you can then create any of the partials and MVC will then discov
See [theMVCsample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/Standalone.MvcSample) to see this in action, as demonstrated [here](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/Standalone.MvcSample/Areas/ActiveLogin/Views/BankIdUiAuth/_Wrapper.cshtml).
812
922
@@ -854,12 +964,15 @@ At the moment, we trigger the events listed below. They all have unique event pr
854
964
- `BankIdAspNetChallengeSuccessEvent`
855
965
- `BankIdAspNetAuthenticateSuccessEvent`
856
966
- `BankIdAspNetAuthenticateFailureEvent`
857
-
-Auth
858
-
- `BankIdAuthSuccessEvent`
859
-
- `BankIdAuthErrorEvent`
967
+
-Initialize
968
+
- `BankIdInitializeSuccessEvent`
969
+
- `BankIdInitializeErrorEvent`
860
970
-Sign
861
971
- `BankIdSignSuccessEvent`
862
-
- `BankIdSignErrorEvent`
972
+
- `BankIdSignFailureEvent`
973
+
-Payment
974
+
- `BankIdPaymentSuccessEvent`
975
+
- `BankIdPaymentFailureEvent`
863
976
-Collect
864
977
- `BankIdCollectPendingEvent`
865
978
- `BankIdCollectCompletedEvent`
@@ -1436,6 +1549,7 @@ public class BankIdAppApiClient : IBankIdAppApiClient
0 commit comments