{"action":"created","comment":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/comments/41216447","id":41216447,"diff_hunk":"@@ -0,0 +1,66 @@\n+'use strict';\n+\n+angular.module('stormpath.linkedinLogin', [])\n+.provider('$linkedinLogin', function() {\n+  function loadLinkedinSDK(clientId, onload) {\n+    var id = 'linkedin-jssdk';\n+    var firstJs = document.getElementsByTagName('script')[0];\n+    var js;\n+\n+    if (document.getElementById(id)) {\n+      return;\n+    }\n+\n+    js = document.createElement('script');\n+    js.id = id;\n+    js.src = '//platform.linkedin.com/in.js';\n+    js.onload = onload;\n+    js.innerHTML = 'api_key: ' + clientId + '\\n' +\n+                   'onLoad: ' + onload.name + '\\n' +\n+                   'authorize: true';\n+\n+    firstJs.parentNode.insertBefore(js, firstJs);\n+  }\n+\n+  this.$get = ['$window', '$q', function linkedinLoginFactory($window, $q) {\n+    var clientId;\n+    var auth2;\n+\n+    function LinkedinLoginService() {\n+      return this;\n+    }\n+\n+    LinkedinLoginService.prototype.name = 'LinkedIn';\n+\n+    LinkedinLoginService.prototype.clientId = function(value) {\n+      if (value) {","path":"src/stormpath.social-login.linkedin.js","position":36,"original_position":36,"commit_id":"303d91eb8de7f4488db3fd4e199ecfefe134ff6f","original_commit_id":"303d91eb8de7f4488db3fd4e199ecfefe134ff6f","user":{"login":"typerandom","id":1331778,"avatar_url":"https://avatars.githubusercontent.com/u/1331778?v=3","gravatar_id":"","url":"https://api.github.com/users/typerandom","html_url":"https://github.com/typerandom","followers_url":"https://api.github.com/users/typerandom/followers","following_url":"https://api.github.com/users/typerandom/following{/other_user}","gists_url":"https://api.github.com/users/typerandom/gists{/gist_id}","starred_url":"https://api.github.com/users/typerandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typerandom/subscriptions","organizations_url":"https://api.github.com/users/typerandom/orgs","repos_url":"https://api.github.com/users/typerandom/repos","events_url":"https://api.github.com/users/typerandom/events{/privacy}","received_events_url":"https://api.github.com/users/typerandom/received_events","type":"User","site_admin":false},"body":"No validation on exactly what is a valid value. Is `true` a valid clientId?","created_at":"2015-10-06T00:54:20Z","updated_at":"2015-10-06T00:54:20Z","html_url":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48#discussion_r41216447","pull_request_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/comments/41216447"},"html":{"href":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48#discussion_r41216447"},"pull_request":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48","id":46842829,"html_url":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48","diff_url":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48.diff","patch_url":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48.patch","issue_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/48","number":48,"state":"open","locked":false,"title":"Add support for social login with Facebook, Google, and LinkedIn","user":{"login":"timothyej","id":721091,"avatar_url":"https://avatars.githubusercontent.com/u/721091?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyej","html_url":"https://github.com/timothyej","followers_url":"https://api.github.com/users/timothyej/followers","following_url":"https://api.github.com/users/timothyej/following{/other_user}","gists_url":"https://api.github.com/users/timothyej/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyej/subscriptions","organizations_url":"https://api.github.com/users/timothyej/orgs","repos_url":"https://api.github.com/users/timothyej/repos","events_url":"https://api.github.com/users/timothyej/events{/privacy}","received_events_url":"https://api.github.com/users/timothyej/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n\r\nFixes #44.\r\n","created_at":"2015-10-05T22:33:06Z","updated_at":"2015-10-06T00:54:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b98daae2d81b16ca43a3f76ac366b53d392e0c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48/commits","review_comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48/comments","review_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/48/comments","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/statuses/303d91eb8de7f4488db3fd4e199ecfefe134ff6f","head":{"label":"timothyej:social-login","ref":"social-login","sha":"303d91eb8de7f4488db3fd4e199ecfefe134ff6f","user":{"login":"timothyej","id":721091,"avatar_url":"https://avatars.githubusercontent.com/u/721091?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyej","html_url":"https://github.com/timothyej","followers_url":"https://api.github.com/users/timothyej/followers","following_url":"https://api.github.com/users/timothyej/following{/other_user}","gists_url":"https://api.github.com/users/timothyej/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyej/subscriptions","organizations_url":"https://api.github.com/users/timothyej/orgs","repos_url":"https://api.github.com/users/timothyej/repos","events_url":"https://api.github.com/users/timothyej/events{/privacy}","received_events_url":"https://api.github.com/users/timothyej/received_events","type":"User","site_admin":false},"repo":{"id":43400463,"name":"stormpath-sdk-angularjs","full_name":"timothyej/stormpath-sdk-angularjs","owner":{"login":"timothyej","id":721091,"avatar_url":"https://avatars.githubusercontent.com/u/721091?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyej","html_url":"https://github.com/timothyej","followers_url":"https://api.github.com/users/timothyej/followers","following_url":"https://api.github.com/users/timothyej/following{/other_user}","gists_url":"https://api.github.com/users/timothyej/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyej/subscriptions","organizations_url":"https://api.github.com/users/timothyej/orgs","repos_url":"https://api.github.com/users/timothyej/repos","events_url":"https://api.github.com/users/timothyej/events{/privacy}","received_events_url":"https://api.github.com/users/timothyej/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timothyej/stormpath-sdk-angularjs","description":"User Management for AngularJS","fork":true,"url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs","forks_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/forks","keys_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/teams","hooks_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/hooks","issue_events_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/issues/events{/number}","events_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/events","assignees_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/assignees{/user}","branches_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/branches{/branch}","tags_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/tags","blobs_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/statuses/{sha}","languages_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/languages","stargazers_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/stargazers","contributors_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/contributors","subscribers_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/subscribers","subscription_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/subscription","commits_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/contents/{+path}","compare_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/merges","archive_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/downloads","issues_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/issues{/number}","pulls_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/pulls{/number}","milestones_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/milestones{/number}","notifications_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/labels{/name}","releases_url":"https://api.github.com/repos/timothyej/stormpath-sdk-angularjs/releases{/id}","created_at":"2015-09-29T23:35:36Z","updated_at":"2015-09-29T23:35:37Z","pushed_at":"2015-10-05T22:30:09Z","git_url":"git://github.com/timothyej/stormpath-sdk-angularjs.git","ssh_url":"git@github.com:timothyej/stormpath-sdk-angularjs.git","clone_url":"https://github.com/timothyej/stormpath-sdk-angularjs.git","svn_url":"https://github.com/timothyej/stormpath-sdk-angularjs","homepage":"http://docs.stormpath.com/angularjs/sdk/","size":2688,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stormpath:master","ref":"master","sha":"e50ef773d6a66a0155981e37d0685b00cc268869","user":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"repo":{"id":29207417,"name":"stormpath-sdk-angularjs","full_name":"stormpath/stormpath-sdk-angularjs","owner":{"login":"stormpath","id":1377453,"avatar_url":"https://avatars.githubusercontent.com/u/1377453?v=3","gravatar_id":"","url":"https://api.github.com/users/stormpath","html_url":"https://github.com/stormpath","followers_url":"https://api.github.com/users/stormpath/followers","following_url":"https://api.github.com/users/stormpath/following{/other_user}","gists_url":"https://api.github.com/users/stormpath/gists{/gist_id}","starred_url":"https://api.github.com/users/stormpath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stormpath/subscriptions","organizations_url":"https://api.github.com/users/stormpath/orgs","repos_url":"https://api.github.com/users/stormpath/repos","events_url":"https://api.github.com/users/stormpath/events{/privacy}","received_events_url":"https://api.github.com/users/stormpath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stormpath/stormpath-sdk-angularjs","description":"User Management for AngularJS","fork":false,"url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs","forks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/forks","keys_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/teams","hooks_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/hooks","issue_events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/events{/number}","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/events","assignees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/assignees{/user}","branches_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/branches{/branch}","tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/tags","blobs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/statuses/{sha}","languages_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/languages","stargazers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/stargazers","contributors_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/contributors","subscribers_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/subscribers","subscription_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/subscription","commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/contents/{+path}","compare_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/merges","archive_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/downloads","issues_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues{/number}","pulls_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls{/number}","milestones_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/milestones{/number}","notifications_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/labels{/name}","releases_url":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/releases{/id}","created_at":"2015-01-13T19:40:28Z","updated_at":"2015-10-01T19:34:47Z","pushed_at":"2015-10-05T22:33:06Z","git_url":"git://github.com/stormpath/stormpath-sdk-angularjs.git","ssh_url":"git@github.com:stormpath/stormpath-sdk-angularjs.git","clone_url":"https://github.com/stormpath/stormpath-sdk-angularjs.git","svn_url":"https://github.com/stormpath/stormpath-sdk-angularjs","homepage":"http://docs.stormpath.com/angularjs/sdk/","size":3120,"stargazers_count":81,"watchers_count":81,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":15,"forks":26,"open_issues":15,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48"},"html":{"href":"https://github.com/stormpath/stormpath-sdk-angularjs/pull/48"},"issue":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/48"},"comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/stormpath/stormpath-sdk-angularjs/statuses/303d91eb8de7f4488db3fd4e199ecfefe134ff6f"}}}}