{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/monaca/monaca-lib/pulls/20","id":39885179,"html_url":"https://github.com/monaca/monaca-lib/pull/20","diff_url":"https://github.com/monaca/monaca-lib/pull/20.diff","patch_url":"https://github.com/monaca/monaca-lib/pull/20.patch","issue_url":"https://api.github.com/repos/monaca/monaca-lib/issues/20","number":20,"state":"open","locked":false,"title":"Local auth api","user":{"login":"argelius","id":6549462,"avatar_url":"https://avatars.githubusercontent.com/u/6549462?v=3","gravatar_id":"","url":"https://api.github.com/users/argelius","html_url":"https://github.com/argelius","followers_url":"https://api.github.com/users/argelius/followers","following_url":"https://api.github.com/users/argelius/following{/other_user}","gists_url":"https://api.github.com/users/argelius/gists{/gist_id}","starred_url":"https://api.github.com/users/argelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argelius/subscriptions","organizations_url":"https://api.github.com/users/argelius/orgs","repos_url":"https://api.github.com/users/argelius/repos","events_url":"https://api.github.com/users/argelius/events{/privacy}","received_events_url":"https://api.github.com/users/argelius/received_events","type":"User","site_admin":false},"body":"@masahirotanaka I've implemented the Local authentication API.\r\n\r\nUse `Localkit.generateOneTimePassword()` to generate a password.\r\n\r\nIt will use `Localkit.validateOneTimePassword()` internally when the API is called. The method will remove the password if validation is successful so it can only be used once.\r\n\r\nIt decrypts, parses and validates the request from the user. If everything works well it will generate a random string and use as pairing key.\r\n\r\nOnly thing different from the spec is that the pairing key is encoded with base64 in the response since we cannot add a random binary string directly to the JSON object. If you want another encoding please tell.","created_at":"2015-07-14T06:24:36Z","updated_at":"2015-07-14T06:24:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/monaca/monaca-lib/pulls/20/commits","review_comments_url":"https://api.github.com/repos/monaca/monaca-lib/pulls/20/comments","review_comment_url":"https://api.github.com/repos/monaca/monaca-lib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/monaca/monaca-lib/issues/20/comments","statuses_url":"https://api.github.com/repos/monaca/monaca-lib/statuses/568c836050f571e1105f6c590a396b08b20c1870","head":{"label":"monaca:local-auth-api","ref":"local-auth-api","sha":"568c836050f571e1105f6c590a396b08b20c1870","user":{"login":"monaca","id":1088627,"avatar_url":"https://avatars.githubusercontent.com/u/1088627?v=3","gravatar_id":"","url":"https://api.github.com/users/monaca","html_url":"https://github.com/monaca","followers_url":"https://api.github.com/users/monaca/followers","following_url":"https://api.github.com/users/monaca/following{/other_user}","gists_url":"https://api.github.com/users/monaca/gists{/gist_id}","starred_url":"https://api.github.com/users/monaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaca/subscriptions","organizations_url":"https://api.github.com/users/monaca/orgs","repos_url":"https://api.github.com/users/monaca/repos","events_url":"https://api.github.com/users/monaca/events{/privacy}","received_events_url":"https://api.github.com/users/monaca/received_events","type":"Organization","site_admin":false},"repo":{"id":34656572,"name":"monaca-lib","full_name":"monaca/monaca-lib","owner":{"login":"monaca","id":1088627,"avatar_url":"https://avatars.githubusercontent.com/u/1088627?v=3","gravatar_id":"","url":"https://api.github.com/users/monaca","html_url":"https://github.com/monaca","followers_url":"https://api.github.com/users/monaca/followers","following_url":"https://api.github.com/users/monaca/following{/other_user}","gists_url":"https://api.github.com/users/monaca/gists{/gist_id}","starred_url":"https://api.github.com/users/monaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaca/subscriptions","organizations_url":"https://api.github.com/users/monaca/orgs","repos_url":"https://api.github.com/users/monaca/repos","events_url":"https://api.github.com/users/monaca/events{/privacy}","received_events_url":"https://api.github.com/users/monaca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monaca/monaca-lib","description":"npm package for Monaca API","fork":false,"url":"https://api.github.com/repos/monaca/monaca-lib","forks_url":"https://api.github.com/repos/monaca/monaca-lib/forks","keys_url":"https://api.github.com/repos/monaca/monaca-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monaca/monaca-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monaca/monaca-lib/teams","hooks_url":"https://api.github.com/repos/monaca/monaca-lib/hooks","issue_events_url":"https://api.github.com/repos/monaca/monaca-lib/issues/events{/number}","events_url":"https://api.github.com/repos/monaca/monaca-lib/events","assignees_url":"https://api.github.com/repos/monaca/monaca-lib/assignees{/user}","branches_url":"https://api.github.com/repos/monaca/monaca-lib/branches{/branch}","tags_url":"https://api.github.com/repos/monaca/monaca-lib/tags","blobs_url":"https://api.github.com/repos/monaca/monaca-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monaca/monaca-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monaca/monaca-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/monaca/monaca-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monaca/monaca-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/monaca/monaca-lib/languages","stargazers_url":"https://api.github.com/repos/monaca/monaca-lib/stargazers","contributors_url":"https://api.github.com/repos/monaca/monaca-lib/contributors","subscribers_url":"https://api.github.com/repos/monaca/monaca-lib/subscribers","subscription_url":"https://api.github.com/repos/monaca/monaca-lib/subscription","commits_url":"https://api.github.com/repos/monaca/monaca-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/monaca/monaca-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/monaca/monaca-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/monaca/monaca-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/monaca/monaca-lib/contents/{+path}","compare_url":"https://api.github.com/repos/monaca/monaca-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monaca/monaca-lib/merges","archive_url":"https://api.github.com/repos/monaca/monaca-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monaca/monaca-lib/downloads","issues_url":"https://api.github.com/repos/monaca/monaca-lib/issues{/number}","pulls_url":"https://api.github.com/repos/monaca/monaca-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/monaca/monaca-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/monaca/monaca-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monaca/monaca-lib/labels{/name}","releases_url":"https://api.github.com/repos/monaca/monaca-lib/releases{/id}","created_at":"2015-04-27T09:06:53Z","updated_at":"2015-07-10T14:37:33Z","pushed_at":"2015-07-14T06:22:35Z","git_url":"git://github.com/monaca/monaca-lib.git","ssh_url":"git@github.com:monaca/monaca-lib.git","clone_url":"https://github.com/monaca/monaca-lib.git","svn_url":"https://github.com/monaca/monaca-lib","homepage":"http://monaca.io","size":12360,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"monaca:master","ref":"master","sha":"782ef364917fdc0388489a38f8af844ed942f353","user":{"login":"monaca","id":1088627,"avatar_url":"https://avatars.githubusercontent.com/u/1088627?v=3","gravatar_id":"","url":"https://api.github.com/users/monaca","html_url":"https://github.com/monaca","followers_url":"https://api.github.com/users/monaca/followers","following_url":"https://api.github.com/users/monaca/following{/other_user}","gists_url":"https://api.github.com/users/monaca/gists{/gist_id}","starred_url":"https://api.github.com/users/monaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaca/subscriptions","organizations_url":"https://api.github.com/users/monaca/orgs","repos_url":"https://api.github.com/users/monaca/repos","events_url":"https://api.github.com/users/monaca/events{/privacy}","received_events_url":"https://api.github.com/users/monaca/received_events","type":"Organization","site_admin":false},"repo":{"id":34656572,"name":"monaca-lib","full_name":"monaca/monaca-lib","owner":{"login":"monaca","id":1088627,"avatar_url":"https://avatars.githubusercontent.com/u/1088627?v=3","gravatar_id":"","url":"https://api.github.com/users/monaca","html_url":"https://github.com/monaca","followers_url":"https://api.github.com/users/monaca/followers","following_url":"https://api.github.com/users/monaca/following{/other_user}","gists_url":"https://api.github.com/users/monaca/gists{/gist_id}","starred_url":"https://api.github.com/users/monaca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaca/subscriptions","organizations_url":"https://api.github.com/users/monaca/orgs","repos_url":"https://api.github.com/users/monaca/repos","events_url":"https://api.github.com/users/monaca/events{/privacy}","received_events_url":"https://api.github.com/users/monaca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monaca/monaca-lib","description":"npm package for Monaca API","fork":false,"url":"https://api.github.com/repos/monaca/monaca-lib","forks_url":"https://api.github.com/repos/monaca/monaca-lib/forks","keys_url":"https://api.github.com/repos/monaca/monaca-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monaca/monaca-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monaca/monaca-lib/teams","hooks_url":"https://api.github.com/repos/monaca/monaca-lib/hooks","issue_events_url":"https://api.github.com/repos/monaca/monaca-lib/issues/events{/number}","events_url":"https://api.github.com/repos/monaca/monaca-lib/events","assignees_url":"https://api.github.com/repos/monaca/monaca-lib/assignees{/user}","branches_url":"https://api.github.com/repos/monaca/monaca-lib/branches{/branch}","tags_url":"https://api.github.com/repos/monaca/monaca-lib/tags","blobs_url":"https://api.github.com/repos/monaca/monaca-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monaca/monaca-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monaca/monaca-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/monaca/monaca-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monaca/monaca-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/monaca/monaca-lib/languages","stargazers_url":"https://api.github.com/repos/monaca/monaca-lib/stargazers","contributors_url":"https://api.github.com/repos/monaca/monaca-lib/contributors","subscribers_url":"https://api.github.com/repos/monaca/monaca-lib/subscribers","subscription_url":"https://api.github.com/repos/monaca/monaca-lib/subscription","commits_url":"https://api.github.com/repos/monaca/monaca-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/monaca/monaca-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/monaca/monaca-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/monaca/monaca-lib/issues/comments{/number}","contents_url":"https://api.github.com/repos/monaca/monaca-lib/contents/{+path}","compare_url":"https://api.github.com/repos/monaca/monaca-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monaca/monaca-lib/merges","archive_url":"https://api.github.com/repos/monaca/monaca-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monaca/monaca-lib/downloads","issues_url":"https://api.github.com/repos/monaca/monaca-lib/issues{/number}","pulls_url":"https://api.github.com/repos/monaca/monaca-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/monaca/monaca-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/monaca/monaca-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monaca/monaca-lib/labels{/name}","releases_url":"https://api.github.com/repos/monaca/monaca-lib/releases{/id}","created_at":"2015-04-27T09:06:53Z","updated_at":"2015-07-10T14:37:33Z","pushed_at":"2015-07-14T06:22:35Z","git_url":"git://github.com/monaca/monaca-lib.git","ssh_url":"git@github.com:monaca/monaca-lib.git","clone_url":"https://github.com/monaca/monaca-lib.git","svn_url":"https://github.com/monaca/monaca-lib","homepage":"http://monaca.io","size":12360,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/monaca/monaca-lib/pulls/20"},"html":{"href":"https://github.com/monaca/monaca-lib/pull/20"},"issue":{"href":"https://api.github.com/repos/monaca/monaca-lib/issues/20"},"comments":{"href":"https://api.github.com/repos/monaca/monaca-lib/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/monaca/monaca-lib/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/monaca/monaca-lib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/monaca/monaca-lib/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/monaca/monaca-lib/statuses/568c836050f571e1105f6c590a396b08b20c1870"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":451,"deletions":3,"changed_files":5}}