From be9ca6957f1560476afdfc613c70dcc45a219570 Mon Sep 17 00:00:00 2001 From: Yuichi Araki Date: Mon, 24 Jul 2023 20:25:32 +0900 Subject: [PATCH] Ignore "extensions" for PublicKeyCredentialCreationOptions --- .../src/main/java/com/example/android/fido2/api/AuthApi.kt | 1 + .../app/src/main/java/com/example/android/fido2/api/AuthApi.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt b/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt index 2670c86..605a1ff 100644 --- a/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt +++ b/android/app-start/src/main/java/com/example/android/fido2/api/AuthApi.kt @@ -317,6 +317,7 @@ class AuthApi @Inject constructor( parseSelection(reader) ) "rp" -> builder.setRp(parseRp(reader)) + "extensions" -> reader.skipValue() // Unused } } reader.endObject() diff --git a/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt b/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt index 0272a80..96c9d47 100644 --- a/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt +++ b/android/app/src/main/java/com/example/android/fido2/api/AuthApi.kt @@ -317,6 +317,7 @@ class AuthApi @Inject constructor( parseSelection(reader) ) "rp" -> builder.setRp(parseRp(reader)) + "extensions" -> reader.skipValue() // Unused } } reader.endObject()