3030            "namespace" : " android_app" 
3131            "package_name" : " com.example.android" 
3232            "sha256_cert_fingerprints" : [
33-                SHA_HEX_VALUE 
33+              " < SHA_HEX_VALUE> " 
3434            ]
3535          }
3636        }
5757      // JSON response format 
5858      // [START android_identity_format_json_response_passkey] 
5959      {
60-         "id" : " KEDetxZcUfinhVi6Za5nZQ " 
60+         "id" : " <credential ID> " 
6161        "type" : " public-key" 
62-         "rawId" : " KEDetxZcUfinhVi6Za5nZQ " 
62+         "rawId" : " <raw credential ID> " 
6363        "response" : {
64-           "clientDataJSON" : " eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdlIjoiVDF4Q3NueE0yRE5MMktkSzVDTGE2Zk1oRDdPQnFobzZzeXpJbmtfbi1VbyIsIm9yaWdpbiI6ImFuZHJvaWQ6YXBrLWtleS1oYXNoOk1MTHpEdll4UTRFS1R3QzZVNlpWVnJGUXRIOEdjVi0xZDQ0NEZLOUh2YUkiLCJhbmRyb2lkUGFja2FnZU5hbWUiOiJjb20uZ29vZ2xlLmNyZWRlbnRpYWxtYW5hZ2VyLnNhbXBsZSJ9 " 
65-           "authenticatorData" : " j5r_fLFhV-qdmGEwiukwD5E_5ama9g0hzXgN8thcFGQdAAAAAA " 
66-           "signature" : " MEUCIQCO1Cm4SA2xiG5FdKDHCJorueiS04wCsqHhiRDbbgITYAIgMKMFirgC2SSFmxrh7z9PzUqr0bK1HZ6Zn8vZVhETnyQ " 
67-           "userHandle" : " 2HzoHm_hY0CjuEESY9tY6-3SdjmNHOoNqaPDcZGzsr0 " 
64+           "clientDataJSON" : " <signed client data containing challenge> " 
65+           "authenticatorData" : " <authenticator metadata> " 
66+           "signature" : " <digital signature to be verified> " 
67+           "userHandle" : " <user ID from credential registration> " 
6868        }
6969      }
7070      // [END android_identity_format_json_response_passkey] 
7474      // Json request for creating a passkey 
7575      // [START android_identity_create_passkey_request_json] 
7676      {
77-         "challenge" : " abc123 " 
77+         "challenge" : " <base64url-encoded challenge> " 
7878        "rp" : {
79-           "name" : " Credential Manager example " 
80-           "id" : " credential-manager-test.example.com " 
79+           "name" : " <relying party name> " 
80+           "id" : " <relying party host name> " 
8181        },
8282        "user" : {
83-           "id" : " def456 " 
84-           "name" : " helloandroid@gmail.com " 
85-           "displayName" : " helloandroid@gmail.com " 
83+           "id" : " <base64url-encoded user ID> " 
84+           "name" : " <user name> " 
85+           "displayName" : " <user display name> " 
8686        },
8787        "pubKeyCredParams" : [
8888          {
8989            "type" : " public-key" 
9090            "alg" : -7 
91-           },
92-           {
93-             "type" : " public-key" 
94-             "alg" : -257 
9591          }
9692        ],
97-         "timeout" : 1800000 ,
9893        "attestation" : " none" 
9994        "excludeCredentials" : [
10095          {
101-             "id" : " ghi789" 
102-             "type" : " public-key" 
103-           },
104-           {
105-             "id" : " jkl012" 
106-             "type" : " public-key" 
96+               "id" : " <base64url-encoded credential ID to exclude>" 
97+               "type" : " public-key" 
10798          }
10899        ],
109100        "authenticatorSelection" : {
110-           "authenticatorAttachment" : " platform" 
111101          "requireResidentKey" : true ,
112102          "residentKey" : " required" 
113103          "userVerification" : " required" 
120110      // Json response when creating a passkey 
121111      // [START android_identity_create_passkey_response_json] 
122112      {
123-         "id" : " KEDetxZcUfinhVi6Za5nZQ " 
113+         "id" : " <identifier> " 
124114        "type" : " public-key" 
125-         "rawId" : " KEDetxZcUfinhVi6Za5nZQ " 
115+         "rawId" : " <identifier> " 
126116        "response" : {
127-           "clientDataJSON" : " eyJ0eXBlIjoid2ViYXV0aG4uY3JlYXRlIiwiY2hhbGxlbmdlIjoibmhrUVhmRTU5SmI5N1Z5eU5Ka3ZEaVh1Y01Fdmx0ZHV2Y3JEbUdyT0RIWSIsIm9yaWdpbiI6ImFuZHJvaWQ6YXBrLWtleS1oYXNoOk1MTHpEdll4UTRFS1R3QzZVNlpWVnJGUXRIOEdjVi0xZDQ0NEZLOUh2YUkiLCJhbmRyb2lkUGFja2FnZU5hbWUiOiJjb20uZ29vZ2xlLmNyZWRlbnRpYWxtYW5hZ2VyLnNhbXBsZSJ9" 
128-           "attestationObject" : " o2NmbXRkbm9uZWdhdHRTdG10oGhhdXRoRGF0YViUj5r_fLFhV-qdmGEwiukwD5E_5ama9g0hzXgN8thcFGRdAAAAAAAAAAAAAAAAAAAAAAAAAAAAEChA3rcWXFH4p4VYumWuZ2WlAQIDJiABIVgg4RqZaJyaC24Pf4tT-8ONIZ5_Elddf3dNotGOx81jj3siWCAWXS6Lz70hvC2g8hwoLllOwlsbYatNkO2uYFO-eJID6A" 
129-         }
117+           "clientDataJSON" : " <ArrayBuffer encoded object with the origin and signed challenge>" 
118+           "attestationObject" : " <ArrayBuffer encoded object with the public key and other information.>" 
119+         },
120+         "authenticatorAttachment" : " platform" 
130121      }
131122      // [END android_identity_create_passkey_response_json] 
132-     }
133- 
123+     },
124+     {
125+       "SignInJsonRequest" :
126+       //Json object sent by server when creating sign-in request 
127+       // [START android_identity_create_sign_in_request_json] 
128+       {
129+         "challenge" : " <your app challenge>" 
130+         "allowCredentials" : [],
131+         "rpId" : " <your app server domain>" 
132+       }
133+         // [END android_identity_create_sign_in_request_json] 
134+       }
134135  ]
135136}
0 commit comments