android / android/security-samples

Not getting any callback while the IRIS scanner failed to authenticate a user.

オープン
#73 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Kotlin
スター
1k
フォーク
450
PR マージ指標
30日以内にマージされた PR はありません

説明

Not invoke any callback ( **onAuthenticationError** or **onAuthenticationFailed** ) while the IRIS scanner failed to authenticate a user.

Android Version: 10,
Samsung S9, One UI 2.1
`

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Executor executor = ContextCompat.getMainExecutor(this);
BiometricPrompt biometricPrompt = new BiometricPrompt(MainActivity.this,
executor, new BiometricPrompt.AuthenticationCallback() {
@Override
public void onAuthenticationError(int errorCode, @NonNull CharSequence errString) {
super.onAuthenticationError(errorCode, errString);

Toast.makeText(getApplicationContext(),
"Authentication error: " + errString + errorCode, Toast.LENGTH_SHORT)
.show();
}

@Override
public void onAuthenticationSucceeded(
@NonNull BiometricPrompt.AuthenticationResult result) {
super.onAuthenticationSucceeded(result);
Toast.makeText(getApplicationContext(),
"Authentication succeeded!", Toast.LENGTH_SHORT).show();
}

@Override
public void onAuthenticationFailed() {
super.onAuthenticationFailed();
Toast.makeText(getApplicationContext(), "Authentication failed",
Toast.LENGTH_SHORT)
.show();
}
});

BiometricPrompt.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder()
.setTitle("Biometric login for my app")
.setSubtitle("Log in using your biometric credential")
.setNegativeButtonText("Use account password")
.setConfirmationRequired(true)
.setAllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG)
.build();

BiometricManager biometricManager = BiometricManager.from(this);

}`

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue ではリポジトリのファイルもテストも指定されていません。まず、Android 10 の Samsung S9 と IRIS 認証で示されている BiometricPrompt のセットアップを再現し、認証に失敗したときに onAuthenticationError と onAuthenticationFailed のどちらが通知されるかを確認してください。欠落している callback の挙動を確実に特定できた時点で完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
authentication, mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。