-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support of QR Code & Deeplink - Proximity check (#122)
* Added support of QR Code & Deeplink - Proximity check * Return incorrectly removed init for backward compatibility * Rename otp to totp * Fix networking serialization tests * Add offline totp * Test totp authorization * Fix lint and missing file * Implement remarks * Add `TOTPParserTests` * Minor fixes * Fix incorrect name of otp in `WMTProximityCheckData` * Bump networking dependency to 1.2.0. * Remove Package.swift from repo * Implement remarks * Remove unused host in TOTPUtils * Comment changed * Bump Networking version to 1.2.0. * Increase minimal ios version to 12 + Fix comment on WMTOperationTOTPData * Minor naming changes * Remove `Packege.resolved` add `Package` * Remove duplicated empty lines * Update podspec * Add docs * Fix placement of the TOTP WMPTProximityCheck * Remove unnecessary info from docs * Add info to PowerAuth compatibility table in SDK-Integration.md
- Loading branch information
1 parent
9699a74
commit 5ab04f7
Showing
21 changed files
with
456 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "wultra/networking-apple" "1.1.7" | ||
github "wultra/networking-apple" "1.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.7.6/PowerAuth2.json" "1.7.6" | ||
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.7.6/PowerAuthCore.json" "1.7.6" | ||
github "wultra/networking-apple" "1.1.7" | ||
github "wultra/networking-apple" "1.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
WultraMobileTokenSDK/Operations/Model/UserOperation/WMTProximityCheck.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// Copyright 2023 Wultra s.r.o. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions | ||
// and limitations under the License. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Object which is used to hold data about proximity check | ||
/// | ||
/// Data shall be assigned to the operation when obtained | ||
public class WMTProximityCheck: Codable { | ||
|
||
/// Tha actual Time-based one time password | ||
public let totp: String | ||
|
||
/// Type of the Proximity check | ||
public let type: WMTProximityCheckType | ||
|
||
/// Timestamp when the operation was scanned (qrCode) or delivered to the device (deeplink) | ||
public let timestampRequested: Date | ||
|
||
public init(totp: String, type: WMTProximityCheckType, timestampRequested: Date = Date()) { | ||
self.totp = totp | ||
self.type = type | ||
self.timestampRequested = timestampRequested | ||
} | ||
} | ||
|
||
/// Types of possible Proximity Checks | ||
public enum WMTProximityCheckType: String, Codable { | ||
case qrCode = "QR_CODE" | ||
case deeplink = "DEEPLINK" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.