{"action":"created","comment":{"url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/comments/93188373","pull_request_review_id":13709676,"id":93188373,"diff_hunk":"@@ -0,0 +1,62 @@\n+<link rel=\"import\" href=\"../../bower_components/polymerfire/firebase-app.html\">\n+<link rel=\"import\" href=\"../../bower_components/polymerfire/firebase-auth.html\">\n+<link rel=\"import\" href=\"../../bower_components/paper-dialog/paper-dialog.html\">\n+<link rel=\"import\" href=\"../../bower_components/paper-button/paper-button.html\">\n+<link rel=\"import\" href=\"../../bower_components/paper-input/paper-input.html\">\n+<link rel=\"import\" href=\"../../bower_components/iron-icon/iron-icon.html\">\n+<link rel=\"import\" href=\"../../bower_components/iron-icons/communication-icons.html\">\n+\n+<dom-module id=\"login-component\">\n+    <template>\n+      <style>\n+\n+      </style>\n+      <firebase-app\n+        auth-domain=\"project-5613440220430148247.firebaseapp.com\"\n+        database-url=\"https://project-5613440220430148247.firebaseio.com\"\n+        api-key=\"AIzaSyBKP4cOP508h0JLKmjFvzJooO0MqV8l4fU\">\n+      </firebase-app>\n+      <firebase-auth id=\"auth\" user=\"{{user}}\" provider=\"google\" on-error=\"handleError\">\n+      </firebase-auth>\n+      <paper-button onclick=\"loginDialog.open()\">Login</paper-button>\n+      <paper-dialog id=\"loginDialog\">\n+        <h2>Insert login data</h2>\n+        <div>\n+          <paper-input label=\"Username\" id=\"userName\">\n+            <iron-icon icon=\"communication:email\" prefix></iron-icon>\n+          </paper-input>\n+          <paper-input label=\"Password\" id=\"password\" type=\"password\">\n+            <iron-icon icon=\"communication:vpn-key\" prefix></iron-icon>\n+          </paper-input>\n+          <div class=\"buttons\">\n+            <paper-button dialog-dismiss>Cancel</paper-button>\n+            <paper-button dialog-confirm on-tap=\"handleClick\">Login</paper-button>\n+          </div>\n+        </div>\n+      </paper-dialog>\n+    </template>\n+    <script>\n+        Polymer({\n+            is: 'login-component',\n+            listeners: {\n+              \"iron-overlay-closed\": 'handleModalClose'\n+            },\n+            properties:{},\n+            handleClick: function(){\n+              //framapp@pgs-soft.com\n+              //password\n+              this.$.auth.signInWithEmailAndPassword(this.$.userName.value, this.$.password.value)\n+                  .then(function(response) {\n+                    debugger;// successful authentication response here","path":"src/framapp-polymer-app/login-component.html","position":50,"original_position":50,"commit_id":"ed4ceeebdf84ff1499427f2eed7518433aad44fe","original_commit_id":"ed4ceeebdf84ff1499427f2eed7518433aad44fe","user":{"login":"szymczakk","id":8584646,"avatar_url":"https://avatars.githubusercontent.com/u/8584646?v=3","gravatar_id":"","url":"https://api.github.com/users/szymczakk","html_url":"https://github.com/szymczakk","followers_url":"https://api.github.com/users/szymczakk/followers","following_url":"https://api.github.com/users/szymczakk/following{/other_user}","gists_url":"https://api.github.com/users/szymczakk/gists{/gist_id}","starred_url":"https://api.github.com/users/szymczakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymczakk/subscriptions","organizations_url":"https://api.github.com/users/szymczakk/orgs","repos_url":"https://api.github.com/users/szymczakk/repos","events_url":"https://api.github.com/users/szymczakk/events{/privacy}","received_events_url":"https://api.github.com/users/szymczakk/received_events","type":"User","site_admin":false},"body":"I think that it should be shared, because we need to add this token in every request. Or we can create very \"low' service that will hold that and every request to our firebase db will go through this service.","created_at":"2016-12-20T08:19:23Z","updated_at":"2016-12-20T08:20:28Z","html_url":"https://github.com/PGS-dev/framapp-polymer/pull/14#discussion_r93188373","pull_request_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/comments/93188373"},"html":{"href":"https://github.com/PGS-dev/framapp-polymer/pull/14#discussion_r93188373"},"pull_request":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14","id":97923097,"html_url":"https://github.com/PGS-dev/framapp-polymer/pull/14","diff_url":"https://github.com/PGS-dev/framapp-polymer/pull/14.diff","patch_url":"https://github.com/PGS-dev/framapp-polymer/pull/14.patch","issue_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/14","number":14,"state":"open","locked":false,"title":"Fp firebase auth","user":{"login":"szymczakk","id":8584646,"avatar_url":"https://avatars.githubusercontent.com/u/8584646?v=3","gravatar_id":"","url":"https://api.github.com/users/szymczakk","html_url":"https://github.com/szymczakk","followers_url":"https://api.github.com/users/szymczakk/followers","following_url":"https://api.github.com/users/szymczakk/following{/other_user}","gists_url":"https://api.github.com/users/szymczakk/gists{/gist_id}","starred_url":"https://api.github.com/users/szymczakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymczakk/subscriptions","organizations_url":"https://api.github.com/users/szymczakk/orgs","repos_url":"https://api.github.com/users/szymczakk/repos","events_url":"https://api.github.com/users/szymczakk/events{/privacy}","received_events_url":"https://api.github.com/users/szymczakk/received_events","type":"User","site_admin":false},"body":"fixes #5 ","created_at":"2016-12-14T10:18:25Z","updated_at":"2016-12-20T08:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"szymczakk","id":8584646,"avatar_url":"https://avatars.githubusercontent.com/u/8584646?v=3","gravatar_id":"","url":"https://api.github.com/users/szymczakk","html_url":"https://github.com/szymczakk","followers_url":"https://api.github.com/users/szymczakk/followers","following_url":"https://api.github.com/users/szymczakk/following{/other_user}","gists_url":"https://api.github.com/users/szymczakk/gists{/gist_id}","starred_url":"https://api.github.com/users/szymczakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymczakk/subscriptions","organizations_url":"https://api.github.com/users/szymczakk/orgs","repos_url":"https://api.github.com/users/szymczakk/repos","events_url":"https://api.github.com/users/szymczakk/events{/privacy}","received_events_url":"https://api.github.com/users/szymczakk/received_events","type":"User","site_admin":false},"assignees":[{"login":"szymczakk","id":8584646,"avatar_url":"https://avatars.githubusercontent.com/u/8584646?v=3","gravatar_id":"","url":"https://api.github.com/users/szymczakk","html_url":"https://github.com/szymczakk","followers_url":"https://api.github.com/users/szymczakk/followers","following_url":"https://api.github.com/users/szymczakk/following{/other_user}","gists_url":"https://api.github.com/users/szymczakk/gists{/gist_id}","starred_url":"https://api.github.com/users/szymczakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymczakk/subscriptions","organizations_url":"https://api.github.com/users/szymczakk/orgs","repos_url":"https://api.github.com/users/szymczakk/repos","events_url":"https://api.github.com/users/szymczakk/events{/privacy}","received_events_url":"https://api.github.com/users/szymczakk/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14/commits","review_comments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14/comments","review_comment_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/14/comments","statuses_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/statuses/ed4ceeebdf84ff1499427f2eed7518433aad44fe","head":{"label":"PGS-dev:fp-firebase-auth","ref":"fp-firebase-auth","sha":"ed4ceeebdf84ff1499427f2eed7518433aad44fe","user":{"login":"PGS-dev","id":11193243,"avatar_url":"https://avatars.githubusercontent.com/u/11193243?v=3","gravatar_id":"","url":"https://api.github.com/users/PGS-dev","html_url":"https://github.com/PGS-dev","followers_url":"https://api.github.com/users/PGS-dev/followers","following_url":"https://api.github.com/users/PGS-dev/following{/other_user}","gists_url":"https://api.github.com/users/PGS-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/PGS-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGS-dev/subscriptions","organizations_url":"https://api.github.com/users/PGS-dev/orgs","repos_url":"https://api.github.com/users/PGS-dev/repos","events_url":"https://api.github.com/users/PGS-dev/events{/privacy}","received_events_url":"https://api.github.com/users/PGS-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":67220675,"name":"framapp-polymer","full_name":"PGS-dev/framapp-polymer","owner":{"login":"PGS-dev","id":11193243,"avatar_url":"https://avatars.githubusercontent.com/u/11193243?v=3","gravatar_id":"","url":"https://api.github.com/users/PGS-dev","html_url":"https://github.com/PGS-dev","followers_url":"https://api.github.com/users/PGS-dev/followers","following_url":"https://api.github.com/users/PGS-dev/following{/other_user}","gists_url":"https://api.github.com/users/PGS-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/PGS-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGS-dev/subscriptions","organizations_url":"https://api.github.com/users/PGS-dev/orgs","repos_url":"https://api.github.com/users/PGS-dev/repos","events_url":"https://api.github.com/users/PGS-dev/events{/privacy}","received_events_url":"https://api.github.com/users/PGS-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PGS-dev/framapp-polymer","description":"FramApp - Polymer","fork":false,"url":"https://api.github.com/repos/PGS-dev/framapp-polymer","forks_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/forks","keys_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/teams","hooks_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/hooks","issue_events_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/events{/number}","events_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/events","assignees_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/assignees{/user}","branches_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/branches{/branch}","tags_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/tags","blobs_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/refs{/sha}","trees_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/statuses/{sha}","languages_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/languages","stargazers_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/stargazers","contributors_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/contributors","subscribers_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/subscribers","subscription_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/subscription","commits_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/commits{/sha}","git_commits_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/commits{/sha}","comments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/comments{/number}","issue_comment_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/comments{/number}","contents_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/contents/{+path}","compare_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/merges","archive_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/downloads","issues_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues{/number}","pulls_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls{/number}","milestones_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/milestones{/number}","notifications_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/labels{/name}","releases_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/releases{/id}","deployments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/deployments","created_at":"2016-09-02T12:27:23Z","updated_at":"2016-11-15T12:20:55Z","pushed_at":"2016-12-19T22:39:14Z","git_url":"git://github.com/PGS-dev/framapp-polymer.git","ssh_url":"git@github.com:PGS-dev/framapp-polymer.git","clone_url":"https://github.com/PGS-dev/framapp-polymer.git","svn_url":"https://github.com/PGS-dev/framapp-polymer","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"PGS-dev:master","ref":"master","sha":"35bc97f0ca955043ec87d8e153ba9126a91d9731","user":{"login":"PGS-dev","id":11193243,"avatar_url":"https://avatars.githubusercontent.com/u/11193243?v=3","gravatar_id":"","url":"https://api.github.com/users/PGS-dev","html_url":"https://github.com/PGS-dev","followers_url":"https://api.github.com/users/PGS-dev/followers","following_url":"https://api.github.com/users/PGS-dev/following{/other_user}","gists_url":"https://api.github.com/users/PGS-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/PGS-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGS-dev/subscriptions","organizations_url":"https://api.github.com/users/PGS-dev/orgs","repos_url":"https://api.github.com/users/PGS-dev/repos","events_url":"https://api.github.com/users/PGS-dev/events{/privacy}","received_events_url":"https://api.github.com/users/PGS-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":67220675,"name":"framapp-polymer","full_name":"PGS-dev/framapp-polymer","owner":{"login":"PGS-dev","id":11193243,"avatar_url":"https://avatars.githubusercontent.com/u/11193243?v=3","gravatar_id":"","url":"https://api.github.com/users/PGS-dev","html_url":"https://github.com/PGS-dev","followers_url":"https://api.github.com/users/PGS-dev/followers","following_url":"https://api.github.com/users/PGS-dev/following{/other_user}","gists_url":"https://api.github.com/users/PGS-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/PGS-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGS-dev/subscriptions","organizations_url":"https://api.github.com/users/PGS-dev/orgs","repos_url":"https://api.github.com/users/PGS-dev/repos","events_url":"https://api.github.com/users/PGS-dev/events{/privacy}","received_events_url":"https://api.github.com/users/PGS-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PGS-dev/framapp-polymer","description":"FramApp - Polymer","fork":false,"url":"https://api.github.com/repos/PGS-dev/framapp-polymer","forks_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/forks","keys_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/teams","hooks_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/hooks","issue_events_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/events{/number}","events_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/events","assignees_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/assignees{/user}","branches_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/branches{/branch}","tags_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/tags","blobs_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/refs{/sha}","trees_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/statuses/{sha}","languages_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/languages","stargazers_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/stargazers","contributors_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/contributors","subscribers_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/subscribers","subscription_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/subscription","commits_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/commits{/sha}","git_commits_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/git/commits{/sha}","comments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/comments{/number}","issue_comment_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/comments{/number}","contents_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/contents/{+path}","compare_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/merges","archive_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/downloads","issues_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues{/number}","pulls_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls{/number}","milestones_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/milestones{/number}","notifications_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/labels{/name}","releases_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/releases{/id}","deployments_url":"https://api.github.com/repos/PGS-dev/framapp-polymer/deployments","created_at":"2016-09-02T12:27:23Z","updated_at":"2016-11-15T12:20:55Z","pushed_at":"2016-12-19T22:39:14Z","git_url":"git://github.com/PGS-dev/framapp-polymer.git","ssh_url":"git@github.com:PGS-dev/framapp-polymer.git","clone_url":"https://github.com/PGS-dev/framapp-polymer.git","svn_url":"https://github.com/PGS-dev/framapp-polymer","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14"},"html":{"href":"https://github.com/PGS-dev/framapp-polymer/pull/14"},"issue":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/14"},"comments":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/PGS-dev/framapp-polymer/statuses/ed4ceeebdf84ff1499427f2eed7518433aad44fe"}}}}
{"actor":{"display_login":"szymczakk"}}