android / android/security-samples

Fido app: Missing or invalid authentication

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

説明

When starting the Fido app you can sign in using a Google account and afterwards logcat shows the following error
```
GAEService: Error extracting information from server's registration request
GAEService: com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable
GAEService: GET https://webauthndemo.appspot.com/_ah/api/fido2RequestHandler/v1/get/register
GAEService: {
GAEService: "code": 503,
GAEService: "errors": [
GAEService: {
GAEService: "domain": "global",
GAEService: "message": "com.google.appengine.api.datastore.DatastoreFailureException: Missing or invalid authentication.",
GAEService: "reason": "backendError"
GAEService: }
GAEService: ],
GAEService: "message": "com.google.appengine.api.datastore.DatastoreFailureException: Missing or invalid authentication."
GAEService: }
GAEService: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
GAEService: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
GAEService: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321)
GAEService: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1111)
GAEService: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
GAEService: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
GAEService: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
GAEService: at com.fido.example.fido2apiexample.GAEService.getRegistrationRequest(GAEService.java:105)
GAEService: at com.fido.example.fido2apiexample.Fido2DemoActivity$11.call(Fido2DemoActivity.java:472)
GAEService: at com.fido.example.fido2apiexample.Fido2DemoActivity$11.call(Fido2DemoActivity.java:468)
GAEService: at com.google.android.gms.tasks.zzy.run(com.google.android.gms:play-services-tasks@@17.2.0:2)
GAEService: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
GAEService: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
GAEService: at java.lang.Thread.run(Thread.java:923)
Fido2DemoActivity: Register request is null
```

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

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

調査の方向性

失敗経路は GAEService.java:105 と Fido2DemoActivity.java:468-472 に示されています。まずサインインフローを再現し、registration-request の呼び出しとその null 結果を調査してください。Google サインイン後に Fido アプリが有効な registration request を取得し、記録された 503 や「Register request is null」の出力が発生しなければ完了です。

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

評価

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

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

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