From a2365c1243417e647d7912a966344aa42aa497f4 Mon Sep 17 00:00:00 2001 From: Balazs Gerlei Date: Wed, 29 May 2024 11:18:39 +0200 Subject: [PATCH] NEVISACCESSAPP-5886: Filter Authenticators that are not supported by the OS during Registration --- .../RegistrationAuthenticatorSelectorImpl.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/ch/nevis/exampleapp/domain/interaction/RegistrationAuthenticatorSelectorImpl.kt b/app/src/main/java/ch/nevis/exampleapp/domain/interaction/RegistrationAuthenticatorSelectorImpl.kt index aeaea4a..b940c73 100644 --- a/app/src/main/java/ch/nevis/exampleapp/domain/interaction/RegistrationAuthenticatorSelectorImpl.kt +++ b/app/src/main/java/ch/nevis/exampleapp/domain/interaction/RegistrationAuthenticatorSelectorImpl.kt @@ -96,9 +96,11 @@ class RegistrationAuthenticatorSelectorImpl( return null } - // Do not display policy non-compliant authenticators (this includes already registered - // authenticators), nor those not supported by hardware. - return if (authenticator.isSupportedByHardware && context.isPolicyCompliant(authenticator.aaid())) { + // Do not display: + // - policy non-compliant authenticators (this includes already registered authenticators) + // - not hardware supported authenticators. + // - not OS supported authenticators. + return if (authenticator.isSupportedByHardware && authenticator.isSupportedByOs && context.isPolicyCompliant(authenticator.aaid())) { AuthenticatorItem( authenticator.aaid(), true, @@ -113,4 +115,4 @@ class RegistrationAuthenticatorSelectorImpl( } } //endregion -} \ No newline at end of file +}