Struct webauthn_rs::proto::RequestAuthenticationExtensionsBuilder [−][src]
pub struct RequestAuthenticationExtensionsBuilder(_);
Expand description
Builder for RequestAuthenticationExtensions objects.
Implementations
Returns the inner extensions struct
Set whether you want to get the credential blob extension
Example
let extensions = RequestAuthenticationExtensions::builder()
.get_cred_blob(true)
.build();
assert_eq!(extensions.get_cred_blob, Some(CredBlobGet(true)));
Set the AppId extension, for backwards compatibility with FIDO U2F credentials
Example
let extensions = RequestAuthenticationExtensions::builder()
.appid(String::from("https://domain.tld/app-id.json"))
.build();
assert_eq!(extensions.appid, Some(String::from("https://domain.tld/app-id.json")));