You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making tests adding additional information to the challenge field in the generate_challenge_authenticate_inner method. I would like to confirm a specific transaction, and it seems my key is signing this new challenge successfully. But, do you think it is a good idea to do it this way, or is there another way to add custom data so the user key adds this data to create the signature? Thanks!
...
fn generate_challenge_authenticate_inner(&self,
creds:Vec<Credential>,
policy:UserVerificationPolicy,
extensions:Option<RequestAuthenticationExtensions>,) -> Result<(RequestChallengeResponse,AuthenticationState),WebauthnError>
where
T:WebauthnConfig,{
let chal = self.generate_challenge();// add let new_chal = NewChallenge{original_challenge: chal.clone().into(),custom_data:"custom data to sign".to_string(),};let new_chal2 = serde_json::to_string(&new_chal).unwrap();let chal = Challenge::new(new_chal2.as_bytes().to_vec());
...
The text was updated successfully, but these errors were encountered:
I am making tests adding additional information to the challenge field in the generate_challenge_authenticate_inner method. I would like to confirm a specific transaction, and it seems my key is signing this new challenge successfully. But, do you think it is a good idea to do it this way, or is there another way to add custom data so the user key adds this data to create the signature? Thanks!
The text was updated successfully, but these errors were encountered: