File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
common/src/main/java/com/microsoft/identity/common/internal/fido Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import androidx.credentials.GetCredentialRequest
2929import androidx.credentials.GetPublicKeyCredentialOption
3030import androidx.credentials.PublicKeyCredential
3131import androidx.credentials.exceptions.NoCredentialException
32+ import com.microsoft.identity.common.java.flighting.CommonFlight
33+ import com.microsoft.identity.common.java.flighting.CommonFlightsManager.getFlightsProvider
3234import com.microsoft.identity.common.java.opentelemetry.AttributeName
3335import com.microsoft.identity.common.logging.Logger
3436import io.opentelemetry.api.trace.Span
@@ -82,7 +84,7 @@ class CredManFidoManager (val context: Context,
8284 // We're setting preferImmediatelyAvailableCredentials in the CredMan getCredentialRequest object to true if the device OS is Android 13 or lower.
8385 // This ensures the behavior where no dialog from CredMan is shown if no passkey cred is present.
8486 // The end goal is for an Android <= 13 user who only has a security key to see one dialog which will allow them to authenticate.
85- preferImmediatelyAvailableCredentials = (Build .VERSION .SDK_INT < Build .VERSION_CODES .UPSIDE_DOWN_CAKE )
87+ preferImmediatelyAvailableCredentials = (getFlightsProvider().isFlightEnabled( CommonFlight . ENABLE_LEGACY_FIDO_SECURITY_KEY_LOGIC ) && Build .VERSION .SDK_INT < Build .VERSION_CODES .UPSIDE_DOWN_CAKE )
8688 )
8789 try {
8890 Logger .info(methodTag, " Calling Credential Manager with a GetCredentialRequest." )
You can’t perform that action at this time.
0 commit comments