Skip to content

Commit

Permalink
Merge pull request #92 from Devolutions/use-android-pubkeycred
Browse files Browse the repository at this point in the history
Use PublicKeyCredential Android for credential creation
  • Loading branch information
jo-trep authored Aug 23, 2024
2 parents ff6772e + cfb62ec commit d0b6974
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "slauth"
version = "0.7.9"
version = "0.7.10"
authors = ["richer <[email protected]>", "LucFauvel <[email protected]>"]
edition = "2021"
description = "oath HOTP and TOTP complient implementation"
Expand Down
2 changes: 1 addition & 1 deletion Slauth.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Slauth'
s.version = '0.7.9'
s.version = '0.7.10'
s.summary = 'A Swift wrapper around Slauth Rust crate'
s.description = <<-DESC
TODO: Add long description of the pod here.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ properties.load(project.rootProject.file('local.properties').newDataInputStream(

project('slauth') {
ext {
libraryVersion = '0.7.9'
libraryVersion = '0.7.10'
}
publishing {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions src/webauthn/authenticator/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub mod android {
WebauthnAuthenticator,
},
proto::web_message::{
AuthenticatorAttestationResponse, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialRaw,
AuthenticatorAttestationResponse, PublicKeyCredentialCreationOptions, PublicKeyCredentialRaw,
PublicKeyCredentialRequestOptions,
},
},
Expand Down Expand Up @@ -341,7 +341,7 @@ pub mod android {
return null_mut();
}

let public_key_credential = PublicKeyCredential::from((*res).credential_response.clone());
let public_key_credential = PublicKeyCredentialAndroid::from((*res).credential_response.clone());
let json = serde_json::to_string(&public_key_credential);

if json.is_err() {
Expand Down
2 changes: 1 addition & 1 deletion wrappers/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "0.7.9"
versionName "0.7.10"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Binary file modified wrappers/android/src/main/jniLibs/arm64-v8a/libslauth.so
Binary file not shown.
Binary file modified wrappers/android/src/main/jniLibs/x86_64/libslauth.so
Binary file not shown.

0 comments on commit d0b6974

Please sign in to comment.