Add native security key registration, reference import, and signing on macOS and iOS. Store references in Vault metadata and route authentication through connection, Assistant, MCP, and agent forwarding flows. Preserve signing cancellation and actionable authentication errors for security keys and Secure Enclave. Pin the released libssh2 forks as nested submodules and refresh package resolution.
20 lines
760 B
Swift
20 lines
760 B
Swift
import SwiftUI
|
|
import TermindApplication
|
|
import TermindDomain
|
|
|
|
public struct WebAuthnVerificationPicker: View {
|
|
@Binding private var selection: SecurityKeyCredential.UserVerification
|
|
|
|
public init(selection: Binding<SecurityKeyCredential.UserVerification>) {
|
|
_selection = selection
|
|
}
|
|
|
|
public var body: some View {
|
|
Picker(AppStrings.SecurityKey.verification.swiftUIKey, selection: $selection) {
|
|
Text(AppStrings.SecurityKey.required).tag(SecurityKeyCredential.UserVerification.required)
|
|
Text(AppStrings.SecurityKey.preferred).tag(SecurityKeyCredential.UserVerification.preferred)
|
|
Text(AppStrings.SecurityKey.discouraged).tag(SecurityKeyCredential.UserVerification.discouraged)
|
|
}
|
|
}
|
|
}
|