{"action":"opened","number":44,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44","id":31347869,"html_url":"https://github.com/strongloop/loopback-component-passport/pull/44","diff_url":"https://github.com/strongloop/loopback-component-passport/pull/44.diff","patch_url":"https://github.com/strongloop/loopback-component-passport/pull/44.patch","issue_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/44","number":44,"state":"open","locked":false,"title":"ldap authentication","user":{"login":"PierreGambarotto","id":812129,"avatar_url":"https://avatars.githubusercontent.com/u/812129?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreGambarotto","html_url":"https://github.com/PierreGambarotto","followers_url":"https://api.github.com/users/PierreGambarotto/followers","following_url":"https://api.github.com/users/PierreGambarotto/following{/other_user}","gists_url":"https://api.github.com/users/PierreGambarotto/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreGambarotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreGambarotto/subscriptions","organizations_url":"https://api.github.com/users/PierreGambarotto/orgs","repos_url":"https://api.github.com/users/PierreGambarotto/repos","events_url":"https://api.github.com/users/PierreGambarotto/events{/privacy}","received_events_url":"https://api.github.com/users/PierreGambarotto/received_events","type":"User","site_admin":false},"body":"This pull request add ldap authentication (with passport-ldapauth).\r\n\r\nRemark : I moved the declaration of the default callback in order to use it.\r\n\r\nHere is a configuration sample: \r\n```\r\n  \"myldap\": {\r\n\t  \"provider\": \"ldap\",\r\n\t  \"authScheme\":\"ldap\",\r\n\t  \"module\": \"passport-ldapauth\",\r\n\t  \"authPath\": \"/auth/ldap\",\r\n    \"successRedirect\": \"/auth/account\",\r\n    \"failureRedirect\": \"/ldap\",\r\n    \"session\": true,\r\n    \"ldap_attribute_for_login\": \"uid\",\r\n    \"ldap_attribute_for_username\": \"uid\",\r\n    \"ldap_attribute_for_mail\": \"mail\",\r\n\t  \"server\":{\r\n\t    \"url\": \"ldap://ldap.example.org:389/dc=example,dc=org\",\r\n\t    \"searchBase\": \"ou=people,dc=example,dc=org\",\r\n      \"searchAttributes\": [\"cn\", \"mail\", \"uid\", \"givenname\"],\r\n\t    \"searchFilter\": \"(uid={{username}})\"\r\n\t  }\r\n  }\r\n```","created_at":"2015-03-17T15:47:44Z","updated_at":"2015-03-17T15:47:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44/commits","review_comments_url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44/comments","review_comment_url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/44/comments","statuses_url":"https://api.github.com/repos/strongloop/loopback-component-passport/statuses/6989f8ace1b30169a811cc9d658d3565f97d8e4d","head":{"label":"PierreGambarotto:ldap","ref":"ldap","sha":"6989f8ace1b30169a811cc9d658d3565f97d8e4d","user":{"login":"PierreGambarotto","id":812129,"avatar_url":"https://avatars.githubusercontent.com/u/812129?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreGambarotto","html_url":"https://github.com/PierreGambarotto","followers_url":"https://api.github.com/users/PierreGambarotto/followers","following_url":"https://api.github.com/users/PierreGambarotto/following{/other_user}","gists_url":"https://api.github.com/users/PierreGambarotto/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreGambarotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreGambarotto/subscriptions","organizations_url":"https://api.github.com/users/PierreGambarotto/orgs","repos_url":"https://api.github.com/users/PierreGambarotto/repos","events_url":"https://api.github.com/users/PierreGambarotto/events{/privacy}","received_events_url":"https://api.github.com/users/PierreGambarotto/received_events","type":"User","site_admin":false},"repo":{"id":32399011,"name":"loopback-component-passport","full_name":"PierreGambarotto/loopback-component-passport","owner":{"login":"PierreGambarotto","id":812129,"avatar_url":"https://avatars.githubusercontent.com/u/812129?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreGambarotto","html_url":"https://github.com/PierreGambarotto","followers_url":"https://api.github.com/users/PierreGambarotto/followers","following_url":"https://api.github.com/users/PierreGambarotto/following{/other_user}","gists_url":"https://api.github.com/users/PierreGambarotto/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreGambarotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreGambarotto/subscriptions","organizations_url":"https://api.github.com/users/PierreGambarotto/orgs","repos_url":"https://api.github.com/users/PierreGambarotto/repos","events_url":"https://api.github.com/users/PierreGambarotto/events{/privacy}","received_events_url":"https://api.github.com/users/PierreGambarotto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PierreGambarotto/loopback-component-passport","description":"LoopBack passport integration to support third party logins and account linking","fork":true,"url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport","forks_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/forks","keys_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/teams","hooks_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/hooks","issue_events_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/issues/events{/number}","events_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/events","assignees_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/assignees{/user}","branches_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/branches{/branch}","tags_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/tags","blobs_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/git/refs{/sha}","trees_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/statuses/{sha}","languages_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/languages","stargazers_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/stargazers","contributors_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/contributors","subscribers_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/subscribers","subscription_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/subscription","commits_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/commits{/sha}","git_commits_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/git/commits{/sha}","comments_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/comments{/number}","issue_comment_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/issues/comments{/number}","contents_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/contents/{+path}","compare_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/merges","archive_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/downloads","issues_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/issues{/number}","pulls_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/pulls{/number}","milestones_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/milestones{/number}","notifications_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/labels{/name}","releases_url":"https://api.github.com/repos/PierreGambarotto/loopback-component-passport/releases{/id}","created_at":"2015-03-17T14:40:25Z","updated_at":"2015-03-17T14:42:11Z","pushed_at":"2015-03-17T14:42:11Z","git_url":"git://github.com/PierreGambarotto/loopback-component-passport.git","ssh_url":"git@github.com:PierreGambarotto/loopback-component-passport.git","clone_url":"https://github.com/PierreGambarotto/loopback-component-passport.git","svn_url":"https://github.com/PierreGambarotto/loopback-component-passport","homepage":null,"size":850,"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":"strongloop:master","ref":"master","sha":"7b8a39425f7872db947f82e9706e2f856a6e8b63","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":19863257,"name":"loopback-component-passport","full_name":"strongloop/loopback-component-passport","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/loopback-component-passport","description":"LoopBack passport integration to support third party logins and account linking","fork":false,"url":"https://api.github.com/repos/strongloop/loopback-component-passport","forks_url":"https://api.github.com/repos/strongloop/loopback-component-passport/forks","keys_url":"https://api.github.com/repos/strongloop/loopback-component-passport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/loopback-component-passport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/loopback-component-passport/teams","hooks_url":"https://api.github.com/repos/strongloop/loopback-component-passport/hooks","issue_events_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/loopback-component-passport/events","assignees_url":"https://api.github.com/repos/strongloop/loopback-component-passport/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/loopback-component-passport/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/loopback-component-passport/tags","blobs_url":"https://api.github.com/repos/strongloop/loopback-component-passport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/loopback-component-passport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/loopback-component-passport/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/loopback-component-passport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/loopback-component-passport/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/loopback-component-passport/languages","stargazers_url":"https://api.github.com/repos/strongloop/loopback-component-passport/stargazers","contributors_url":"https://api.github.com/repos/strongloop/loopback-component-passport/contributors","subscribers_url":"https://api.github.com/repos/strongloop/loopback-component-passport/subscribers","subscription_url":"https://api.github.com/repos/strongloop/loopback-component-passport/subscription","commits_url":"https://api.github.com/repos/strongloop/loopback-component-passport/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/loopback-component-passport/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-passport/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/loopback-component-passport/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/loopback-component-passport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/loopback-component-passport/merges","archive_url":"https://api.github.com/repos/strongloop/loopback-component-passport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/loopback-component-passport/downloads","issues_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/loopback-component-passport/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/loopback-component-passport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/loopback-component-passport/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/loopback-component-passport/releases{/id}","created_at":"2014-05-16T16:30:25Z","updated_at":"2015-03-09T04:53:47Z","pushed_at":"2015-03-09T04:53:47Z","git_url":"git://github.com/strongloop/loopback-component-passport.git","ssh_url":"git@github.com:strongloop/loopback-component-passport.git","clone_url":"https://github.com/strongloop/loopback-component-passport.git","svn_url":"https://github.com/strongloop/loopback-component-passport","homepage":null,"size":850,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":13,"forks":40,"open_issues":13,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44"},"html":{"href":"https://github.com/strongloop/loopback-component-passport/pull/44"},"issue":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/44"},"comments":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/loopback-component-passport/statuses/6989f8ace1b30169a811cc9d658d3565f97d8e4d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":74,"deletions":43,"changed_files":1}}