{"action":"created","issue":{"url":"https://api.github.com/repos/Yubico/u2fval/issues/31","repository_url":"https://api.github.com/repos/Yubico/u2fval","labels_url":"https://api.github.com/repos/Yubico/u2fval/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Yubico/u2fval/issues/31/comments","events_url":"https://api.github.com/repos/Yubico/u2fval/issues/31/events","html_url":"https://github.com/Yubico/u2fval/issues/31","id":219237186,"number":31,"title":"Possible incorrect JSON format for u2f requests","user":{"login":"MRuth","id":3927478,"avatar_url":"https://avatars2.githubusercontent.com/u/3927478?v=3","gravatar_id":"","url":"https://api.github.com/users/MRuth","html_url":"https://github.com/MRuth","followers_url":"https://api.github.com/users/MRuth/followers","following_url":"https://api.github.com/users/MRuth/following{/other_user}","gists_url":"https://api.github.com/users/MRuth/gists{/gist_id}","starred_url":"https://api.github.com/users/MRuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRuth/subscriptions","organizations_url":"https://api.github.com/users/MRuth/orgs","repos_url":"https://api.github.com/users/MRuth/repos","events_url":"https://api.github.com/users/MRuth/events{/privacy}","received_events_url":"https://api.github.com/users/MRuth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-04T12:41:08Z","updated_at":"2017-04-04T12:57:47Z","closed_at":null,"body":"While testing the v2 branch of the server I am unable to register any u2f devices with a test site running on a local workstation.  I don't know if there is something that needs to be set in the Javascript APIs for registering and authenticating with u2f V2, but there is a major inconsistency between the latest release u2fval server JSON format and the v2 branch format.  Here is a sample of both servers' outputs for a register request.\r\n\r\n\r\nLatest Release Server v1.0.1\r\n```javascript\r\n{\r\n  \"authenticateDescriptors\": [],\r\n  \"authenticateRequests\": [],\r\n  \"registerRequests\": [\r\n    {\r\n      \"challenge\": \"qaF1VRipNjsxtxmOCs6ggfPkHiQ0iXVPtiIW4wRtg-I\",\r\n      \"version\": \"U2F_V2\",\r\n      \"appId\": \"https://localhost:9443\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n\r\nV2 branch Server v2.0.0\r\n```javascript\r\n{\r\n  \"appId\": \"https://localhost:9443\",\r\n  \"descriptors\": [],\r\n  \"registerRequests\": [\r\n    {\r\n      \"challenge\": \"Q5YigLhgKxAw7dNNZ_8jLzCxNIKOvlEEof7e9LXjk9w\",\r\n      \"version\": \"U2F_V2\"\r\n    }\r\n  ],\r\n  \"registeredKeys\": []\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Yubico/u2fval/issues/comments/291491351","html_url":"https://github.com/Yubico/u2fval/issues/31#issuecomment-291491351","issue_url":"https://api.github.com/repos/Yubico/u2fval/issues/31","id":291491351,"user":{"login":"dainnilsson","id":140781,"avatar_url":"https://avatars1.githubusercontent.com/u/140781?v=3","gravatar_id":"","url":"https://api.github.com/users/dainnilsson","html_url":"https://github.com/dainnilsson","followers_url":"https://api.github.com/users/dainnilsson/followers","following_url":"https://api.github.com/users/dainnilsson/following{/other_user}","gists_url":"https://api.github.com/users/dainnilsson/gists{/gist_id}","starred_url":"https://api.github.com/users/dainnilsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainnilsson/subscriptions","organizations_url":"https://api.github.com/users/dainnilsson/orgs","repos_url":"https://api.github.com/users/dainnilsson/repos","events_url":"https://api.github.com/users/dainnilsson/events{/privacy}","received_events_url":"https://api.github.com/users/dainnilsson/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T12:57:47Z","updated_at":"2017-04-04T12:57:47Z","body":"I _think_ the canonical source for the library for use with Chrome is here: https://github.com/google/u2f-ref-code/blob/master/u2f-gae-demo/war/js/u2f-api.js"}}
{"actor":{"display_login":"dainnilsson"}}