fido2.rpid

These functions validate RP_ID and APP_ID according to simplified TLD+1 rules, using a bundled copy of the public suffix list fetched from:

Advanced APP_ID values pointing to JSON files containing valid facets are not supported by this implementation.

Attributes

tld_fname

suffixes

Functions

verify_rp_id(rp_id, origin)

Checks if a Webauthn RP ID is usable for a given origin.

Module Contents

fido2.rpid.tld_fname
fido2.rpid.suffixes
fido2.rpid.verify_rp_id(rp_id, origin)[source]

Checks if a Webauthn RP ID is usable for a given origin.

Parameters:
  • rp_id (str) – The RP ID to validate.

  • origin (str) – The origin of the request.

Returns:

True if the RP ID is usable by the origin, False if not.

Return type:

bool