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: README.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -990,7 +990,7 @@ the Smart-ID API will stay waiting for the RP to start the [linked notification-
990
990
*`relyingPartyUUID`: Required. UUID of the Relying Party.
991
991
*`relyingPartyName`: Required. Friendly name of the Relying Party, limited to 32 bytes in UTF-8 encoding.
992
992
*`certificateLevel`: Level of certificate requested. ADVANCED/QUALIFIED/QSCD, defaults to QUALIFIED.
993
-
*`nonce`: Random string, up to 30 characters. If present, must have at least 1 character. Used for overriding idempotency.
993
+
*`nonce`: Random string, up to 30 characters. If present, must have at least 1 character. Used for overriding idempotent behaviour.
994
994
*`capabilities`: Used only when agreed with Smart-ID provider. When omitted, request capabilities are derived from certificateLevel.
995
995
*`requestProperties`: A request properties object as a set of name/value pairs. For example, requesting the IP address of the user's device.
996
996
*`initialCallbackUrl` : Optional. Must match regex `^https:\/\/([^\\|]+)$`. If it contains the vertical bar `|`, it must be percent-encoded. Should be used for same-device flow.
@@ -1218,9 +1218,6 @@ Jump to [Query session status](#example-of-using-session-status-poller-to-query-
1218
1218
1219
1219
### Notification-based signature session
1220
1220
1221
-
> [!CAUTION]
1222
-
> The notification-based signature has not yet been updated to be used with Smart-ID API v3.1
1223
-
1224
1221
#### Request Parameters
1225
1222
The request parameters for the notification-based signature session are as follows:
1226
1223
@@ -1230,21 +1227,23 @@ The request parameters for the notification-based signature session are as follo
1230
1227
*`signatureProtocol`: Required. Signature protocol to use. Currently, the only allowed value is RAW_DIGEST_SIGNATURE.
1231
1228
*`signatureProtocolParameters`: Required. Parameters for the RAW_DIGEST_SIGNATURE signature protocol.
1232
1229
*`digest`: Required. Base64 encoded digest to be signed.
*`allowedInteractionsOrder`: Required. An array of interaction objects defining the allowed interactions in order of preference.
1230
+
*`signatureAlgorithm`: Required. Signature algorithm name. Only `rsassa-pss` is currently supported.
1231
+
*`signatureAlgorithmParameters`: Required. Parameters for the signature algorithm.
1232
+
*`hashAlgorithm`: Required. Hash algorithm used for digest. Supported values are `SHA-256`, `SHA-384`, `SHA-512`, `SHA3-256`, `SHA3-384`, `SHA3-512`.
1233
+
*`interactions`: Required. Base64-encoded string of interactions to be used for a session. The interactions are defined in order of preference.
1235
1234
* Each interaction object includes:
1236
-
* `type`: Required. Type of interaction. Allowed types are `verificationCodeChoice`, `confirmationMessageAndVerificationCodeChoice`.
1235
+
* `type`: Required. Type of interaction. Allowed types are `displayTextAndPIN`, `confirmationMessage`, `confirmationMessageAndVerificationCodeChoice`.
1237
1236
* `displayText60` or `displayText200`: Required based on type. Text to display to the user. `displayText60` is limited to 60 characters, and `displayText200` is limited to 200 characters.
1238
-
*`nonce`: Optional. Random string, up to 30 characters. If present, must have at least 1 character.
1237
+
*`nonce`: Optional. Random string, up to 30 characters. If present, must have at least 1 character. To be used for overriding idempotency.
1239
1238
*`requestProperties`: requestProperties:
1240
1239
*`shareMdClientIpAddress`: Optional. Boolean indicating whether to request the IP address of the user's device.
1241
1240
*`capabilities`: Optional. Array of strings specifying capabilities. Used only when agreed with the Smart-ID provider.
1242
1241
1243
1242
#### Response Parameters
1244
1243
*`sessionID`: Required. String used to request the operation result.
1245
-
*`verificationCode`: Required. Object describing the Verification Code to be displayed.
1246
-
*`type`: Required. Type of the VC code. Currently, the only allowed type is `alphaNumeric4`.
1247
-
*`value`: Required. Value of the VC code.
1244
+
*`vc`: Required. Object describing the verification code details.
1245
+
*`type`: Required. Type of the verification code. Currently, the only allowed type is `numeric4`.
1246
+
*`value`: Required. Value of the verification code to be displayed to the user.
1248
1247
1249
1248
#### Examples of initiating a notification-based signature session
1250
1249
@@ -1262,21 +1261,20 @@ SemanticsIdentifier semanticsIdentifier = new SemanticsIdentifier(
Jump to [Query session status](#example-of-using-session-status-poller-to-query-final-sessions-status) for an example of session querying.
1310
1308
@@ -1339,7 +1337,12 @@ try {
1339
1337
1340
1338
#### Using nonce to override idempotent behaviour
1341
1339
1342
-
Authentication is used as an example, nonce can also be used with certificate choice and signature sessions requests by using method `withNonce("randomValue")`.
1340
+
Idempotent behaviour means that if the session request with same values is made multiple times within a 15-second window,
1341
+
the same response with identical values will be returned. If there is a need to override this behaviour, a nonce can be used.
1342
+
Nonce value must be a random string with a minimum length of 1 and a maximum length of 30 characters.
1343
+
1344
+
Notification-based signature request is used as an example. Nonce can also be used with other signing session request
1345
+
(device-link signature and certificate choice; notification-based certificate choice) by using method `withNonce("randomValue")`.
0 commit comments