-
Notifications
You must be signed in to change notification settings - Fork 0
/
sendRegReq.txt
61 lines (56 loc) · 4.47 KB
/
sendRegReq.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
u2f.sendRegisterRequest = function(appId, registerRequests, registeredKeys, callback, opt_timeoutSeconds) {
u2f.getPortSingleton_(function(port) {
var reqId = ++u2f.reqCounter_;
u2f.callbackMap_[reqId] = callback;
var timeoutSeconds = (typeof opt_timeoutSeconds !== 'undefined' ?
opt_timeoutSeconds : u2f.EXTENSION_TIMEOUT_SEC);
var req = u2f.formatRegisterRequest_(
appId, registeredKeys, registerRequests, timeoutSeconds, reqId);
console.log("sendRegReq", req);
port.postMessage(req);
console.log("returned from post", callback);
Binding input {"UserName":"tomcjones","AppId":"https://localhost:44371","Challenge":"7hochY2r9CW6KDXXsRQjq774Brst1udfOf7HR2nst_Q","Version":"U2F_V2","jsonData":"{\"PublicKeyCredentialRpEntity\":\"https://localhost:44371\",\"PublicKeyCredentialUserEntity\":\"tomcjones\",\"ChallengeBuffer\":\"7hochY2r9CW6KDXXsRQjq774Brst1udfOf7HR2nst_Q\",\"Timeout\":0,\"AuthenticatorSelectionCriteria\":null,\"AttestationConveyancePreference\":null,\"AuthenticationExtensionsClientInputs\":{\"AppID\":\"https://localhost:44371\",\"Version\":\"U2F_V2\"}}","DeviceResponse":null}
sendRegReq
{type: "u2f_register_request", appId: "https://localhost:44371", registerRequests: Array(1), registeredKeys: Array(0), timeoutSeconds: 30, …}
appId
:
"https://localhost:44371"
registerRequests
:
[{…}]
registeredKeys
:
[]
requestId
:
2
timeoutSeconds
:
30
type
:
"u2f_register_request"
__proto__
:
Object
Binding callback
{registrationData: "BQTPaV1-p01UtzD8xNxTbfLzL45mldYBFBPvAYjaq7G4nDt5tS…rPMcCIGbXY7WnHkr34AtO4qG7Ie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