Skip to content

Commit 43d39c5

Browse files
committed
Deprecate U2F server class
1 parent 12fd6ab commit 43d39c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fido2/server.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,16 @@ def _make_internal_state(
442442
}
443443

444444

445+
# TODO 2.0: Delete, or move to an example
445446
def verify_app_id(app_id: str, origin: str) -> bool:
446447
"""Checks if a FIDO U2F App ID is usable for a given origin.
447448
448449
:param app_id: The App ID to validate.
449450
:param origin: The origin of the request.
450451
:return: True if the App ID is usable by the origin, False if not.
452+
453+
.. deprecated:: 1.2.0
454+
This will be removed in python-fido2 2.0.
451455
"""
452456
url = urlparse(app_id)
453457
hostname = url.hostname
@@ -461,6 +465,7 @@ def verify_app_id(app_id: str, origin: str) -> bool:
461465
return verify_rp_id(hostname, origin)
462466

463467

468+
# TODO 2.0: Delete, or move to an example
464469
class U2FFido2Server(Fido2Server):
465470
"""Fido2Server which can be used with existing U2F credentials.
466471
@@ -473,6 +478,9 @@ class U2FFido2Server(Fido2Server):
473478
origin for U2F credentials.
474479
475480
For other parameters, see Fido2Server.
481+
482+
.. deprecated:: 1.2.0
483+
This will be removed in python-fido2 2.0.
476484
"""
477485

478486
def __init__(

0 commit comments

Comments
 (0)