зеркало из https://github.com/github/SoftU2F.git
27 строки
1.2 KiB
Swift
27 строки
1.2 KiB
Swift
//
|
|
// KnownFacets.swift
|
|
// SoftU2F
|
|
//
|
|
// Created by Benjamin P Toews on 1/27/17.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
let KnownFacets: [Data: String] = [
|
|
SHA256.digest("https://github.com/u2f/trusted_facets"): "https://github.com",
|
|
SHA256.digest("https://demo.yubico.com"): "https://demo.yubico.com",
|
|
SHA256.digest("https://www.dropbox.com/u2f-app-id.json"): "https://dropbox.com",
|
|
SHA256.digest("https://www.gstatic.com/securitykey/origins.json"): "https://google.com",
|
|
SHA256.digest("https://vault.bitwarden.com/app-id.json"): "https://vault.bitwarden.com",
|
|
SHA256.digest("https://keepersecurity.com"): "https://keepersecurity.com",
|
|
SHA256.digest("https://api-9dcf9b83.duosecurity.com"): "https://api-9dcf9b83.duosecurity.com",
|
|
SHA256.digest("https://dashboard.stripe.com"): "https://dashboard.stripe.com",
|
|
SHA256.digest("https://id.fedoraproject.org/u2f-origins.json"): "https://id.fedoraproject.org",
|
|
SHA256.digest("https://lastpass.com"): "https://lastpass.com",
|
|
SHA256.digest("https://u2f.aws.amazon.com/app-id.json"): "https://aws.amazon.com",
|
|
|
|
// When we return an error during authentication, Chrome will send a registration request with
|
|
// a bogus AppID.
|
|
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".data(using: .ascii)!: "bogus"
|
|
]
|