webauthn::WebAuthn method assert_rpidhash (protected)
<instance of webauthn::WebAuthn> assert_rpidhash \ [ -rpIdHash rpIdHash ] [ -rpId rpId ] [ -context context ]
Defined in packages/webauthn/tcl/webauthn-procs.tcl
- Switches:
- -rpIdHash (optional)
- -rpId (optional)
- -context (optional)
- Testcases:
- No testcase defined.
Source code: set got_hex [binary encode hex $rpIdHash] set exp_hex [ns_crypto::md string -digest sha256 -encoding hex $rpId] if {$got_hex ne $exp_hex} { if {$context ne ""} { throw {validation rpid-mismatch} "$context for different rpid. Should be for: $rpId" } else { throw {validation rpid-mismatch} "rpIdHash mismatch" } }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)