How to use the fido2.rpid.verify_app_id function in fido2

To help you get started, we’ve selected a few fido2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_valid_ids_mixed_type(self):
        self.assertTrue(
            verify_app_id(b"https://example.com", "https://register.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", b"https://fido.example.com")
        )
        self.assertTrue(
            verify_app_id(b"https://example.com", b"https://www.example.com:444")
        )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
)
        self.assertTrue(
            verify_app_id("https://example.com", "https://fido.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", "https://www.example.com:444")
        )

        self.assertTrue(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://fido.companyA.hosting.example.com",
            )
        )
        self.assertTrue(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://xyz.companyA.hosting.example.com",
            )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_invalid_ids_mixed_type(self):
        self.assertFalse(verify_app_id(b"https://example.com", "http://example.com"))
        self.assertFalse(
            verify_app_id("https://example.com", b"http://www.example.com")
        )
        self.assertFalse(
            verify_app_id(b"https://example.com", b"https://example-test.com")
        )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_effective_tld_names(self):
        self.assertFalse(
            verify_app_id("https://appspot.com", "https://foo.appspot.com")
        )
        self.assertFalse(verify_app_id("https://co.uk", "https://example.co.uk"))
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_valid_ids_mixed_type(self):
        self.assertTrue(
            verify_app_id(b"https://example.com", "https://register.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", b"https://fido.example.com")
        )
        self.assertTrue(
            verify_app_id(b"https://example.com", b"https://www.example.com:444")
        )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_invalid_ids_mixed_type(self):
        self.assertFalse(verify_app_id(b"https://example.com", "http://example.com"))
        self.assertFalse(
            verify_app_id("https://example.com", b"http://www.example.com")
        )
        self.assertFalse(
            verify_app_id(b"https://example.com", b"https://example-test.com")
        )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_valid_ids(self):
        self.assertTrue(
            verify_app_id("https://example.com", "https://register.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", "https://fido.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", "https://www.example.com:444")
        )

        self.assertTrue(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://fido.companyA.hosting.example.com",
            )
        )
        self.assertTrue(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://xyz.companyA.hosting.example.com",
            )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_invalid_ids(self):
        self.assertFalse(verify_app_id("https://example.com", "http://example.com"))
        self.assertFalse(verify_app_id("https://example.com", "http://www.example.com"))
        self.assertFalse(
            verify_app_id("https://example.com", "https://example-test.com")
        )

        self.assertFalse(
            verify_app_id(
                "https://companyA.hosting.example.com", "https://register.example.com"
            )
        )
        self.assertFalse(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://companyB.hosting.example.com",
            )
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_valid_ids(self):
        self.assertTrue(
            verify_app_id("https://example.com", "https://register.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", "https://fido.example.com")
        )
        self.assertTrue(
            verify_app_id("https://example.com", "https://www.example.com:444")
        )

        self.assertTrue(
            verify_app_id(
                "https://companyA.hosting.example.com",
                "https://fido.companyA.hosting.example.com",
            )
        )
        self.assertTrue(
            verify_app_id(
github Yubico / python-fido2 / test / test_rpid.py View on Github external
def test_invalid_ids_mixed_type(self):
        self.assertFalse(verify_app_id(b"https://example.com", "http://example.com"))
        self.assertFalse(
            verify_app_id("https://example.com", b"http://www.example.com")
        )
        self.assertFalse(
            verify_app_id(b"https://example.com", b"https://example-test.com")
        )