Skip to content

Commit bc77716

Browse files
authored
Merge branch 'develop' into feature/124-pac-with-claim
2 parents 356c588 + ea46b73 commit bc77716

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ All sources are licensed using the Apache 2.0 license. You can use them with no
4545

4646
## Contact
4747

48-
If you need any assistance, do not hesitate to drop us a line at [[email protected]](mailto:[email protected]) or our official [gitter.im/wultra](https://gitter.im/wultra) channel.
48+
If you need any assistance, do not hesitate to drop us a line at [[email protected]](mailto:[email protected]) or our official [wultra.com/discord](https://wultra.com/discord) channel.
4949

5050
### Security Disclosure
5151

Diff for: WultraMobileTokenSDK/Operations/Model/Requests/WMTAuthorizationData.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class WMTAuthorizationData: Codable {
3434
self.proximityCheck = proximityCheck
3535
}
3636

37-
init(operation: WMTOperation, timestampSigned: Date = Date()) {
37+
init(operation: WMTOperation, timestampSent: Date = Date()) {
3838
self.id = operation.id
3939
self.data = operation.data
4040

@@ -46,8 +46,8 @@ class WMTAuthorizationData: Codable {
4646
self.proximityCheck = WMTProximityCheckData(
4747
otp: proximityCheck.totp,
4848
type: proximityCheck.type,
49-
timestampRequested: proximityCheck.timestampRequested,
50-
timestampSigned: timestampSigned
49+
timestampReceived: proximityCheck.timestampReceived,
50+
timestampSent: timestampSent
5151
)
5252
}
5353
}
@@ -62,8 +62,8 @@ struct WMTProximityCheckData: Codable {
6262
let type: WMTProximityCheckType
6363

6464
/// Timestamp when the operation was delivered to the app
65-
let timestampRequested: Date
65+
let timestampReceived: Date
6666

6767
/// Timestamp when the operation was signed
68-
let timestampSigned: Date
68+
let timestampSent: Date
6969
}

Diff for: WultraMobileTokenSDK/Operations/Model/UserOperation/WMTProximityCheck.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public class WMTProximityCheck: Codable {
2828
public let type: WMTProximityCheckType
2929

3030
/// Timestamp when the operation was scanned (qrCode) or delivered to the device (deeplink)
31-
public let timestampRequested: Date
31+
public let timestampReceived: Date
3232

33-
public init(totp: String, type: WMTProximityCheckType, timestampRequested: Date = Date()) {
33+
public init(totp: String, type: WMTProximityCheckType, timestampReceived: Date = Date()) {
3434
self.totp = totp
3535
self.type = type
36-
self.timestampRequested = timestampRequested
36+
self.timestampReceived = timestampReceived
3737
}
3838
}
3939

Diff for: WultraMobileTokenSDK/Operations/Service/WMTOperationsImpl.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class WMTOperationsImpl<T: WMTUserOperation>: WMTOperations, WMTService {
283283
return nil
284284
}
285285

286-
let data = WMTAuthorizationData(operation: operation, timestampSigned: currentServerDate ?? Date())
286+
let data = WMTAuthorizationData(operation: operation, timestampSent: currentServerDate ?? Date())
287287

288288
return networking.post(data: .init(data), signedWith: authentication, to: WMTOperationEndpoints.Authorize.endpoint) { response, error in
289289
self.processResult(response: response, error: error) { result in

Diff for: docs/Using-Operations-Service.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ public class WMTProximityCheck: Codable {
560560
/// Type of the Proximity check
561561
public let type: WMTProximityCheckType
562562
/// Timestamp when the operation was scanned (QR Code) or delivered to the device (Deeplink)
563-
public let timestampRequested: Date
563+
public let timestampReceived: Date
564564
}
565565
```
566566

@@ -662,10 +662,10 @@ When the app is launched via a deeplink, preserve the data from the deeplink and
662662
Once the QR code is scanned or match from the deeplink is found, create a `WMTProximityCheck` with:
663663
- `totp`: The actual Time-Based One-Time Password.
664664
- `type`: Set to `WMTProximityCheckType.qrCode` or `WMTProximityCheckType.deeplink`.
665-
- `timestampRequested`: The timestamp when the QR code was scanned (by default, it is created as the current timestamp).
665+
- `timestampReceived`: The timestamp when the QR code was scanned (by default, it is created as the current timestamp).
666666

667667
- Authorizing the WMTProximityCheck
668-
When authorization, the SDK will by default add `timestampSigned` to the `WMTProximityCheck` object. This timestamp indicates when the operation was signed.
668+
When authorization, the SDK will by default add `timestampSent` to the `WMTProximityCheck` object. This timestamp indicates when the operation was signed.
669669

670670
### WMTPACUtils
671671
- For convenience, utility class for parsing and extracting data from QR codes and deeplinks used in the PAC (Proximity Anti-fraud Check), is provided.

0 commit comments

Comments
 (0)