{"action":"opened","number":903,"pull_request":{"url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903","id":51892551,"html_url":"https://github.com/hwi/HWIOAuthBundle/pull/903","diff_url":"https://github.com/hwi/HWIOAuthBundle/pull/903.diff","patch_url":"https://github.com/hwi/HWIOAuthBundle/pull/903.patch","issue_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/903","number":903,"state":"open","locked":false,"title":"Ignore custom keys to be able to rewrite any default parameter.","user":{"login":"ferrastas","id":116074,"avatar_url":"https://avatars.githubusercontent.com/u/116074?v=3","gravatar_id":"","url":"https://api.github.com/users/ferrastas","html_url":"https://github.com/ferrastas","followers_url":"https://api.github.com/users/ferrastas/followers","following_url":"https://api.github.com/users/ferrastas/following{/other_user}","gists_url":"https://api.github.com/users/ferrastas/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrastas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrastas/subscriptions","organizations_url":"https://api.github.com/users/ferrastas/orgs","repos_url":"https://api.github.com/users/ferrastas/repos","events_url":"https://api.github.com/users/ferrastas/events{/privacy}","received_events_url":"https://api.github.com/users/ferrastas/received_events","type":"User","site_admin":false},"body":"Adding this flag, now are able to rewrite default parameters.\\\r\n\r\nFor example, in HWI\\Bundle\\OAuthBundle\\OAuth\\ResourceOwner\\GitHubResourceOwner there is a custom parameter *emails_url* that's not defined in the configuration tree builder. (Maybe other OAuth providers has another custom parameters)\r\n\r\nNow, the GitHub Resource is fully compatible with GitHub Enterprise adding this in the main project config.yml\r\n``` yml\r\nhwi_oauth:\r\n\t...\r\n    resource_owners:\r\n        github:\r\n            type:          github\r\n            client_id:     %github.client_id%\r\n            client_secret: %github.client_secret%\r\n            authorization_url: %github.authorization_url%\r\n            access_token_url: %github.access_token_url%\r\n            revoke_token_url: %github.revoke_token_url%\r\n            infos_url: %github.infos_url%\r\n            emails_url: %github.emails_url%\r\n\r\n```","created_at":"2015-11-26T10:02:45Z","updated_at":"2015-11-26T10:02:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903/commits","review_comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903/comments","review_comment_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/903/comments","statuses_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/bebf576540ae01b9f4ec08538120710df79179ec","head":{"label":"ferrastas:ignore-extra-params","ref":"ignore-extra-params","sha":"bebf576540ae01b9f4ec08538120710df79179ec","user":{"login":"ferrastas","id":116074,"avatar_url":"https://avatars.githubusercontent.com/u/116074?v=3","gravatar_id":"","url":"https://api.github.com/users/ferrastas","html_url":"https://github.com/ferrastas","followers_url":"https://api.github.com/users/ferrastas/followers","following_url":"https://api.github.com/users/ferrastas/following{/other_user}","gists_url":"https://api.github.com/users/ferrastas/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrastas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrastas/subscriptions","organizations_url":"https://api.github.com/users/ferrastas/orgs","repos_url":"https://api.github.com/users/ferrastas/repos","events_url":"https://api.github.com/users/ferrastas/events{/privacy}","received_events_url":"https://api.github.com/users/ferrastas/received_events","type":"User","site_admin":false},"repo":{"id":46917130,"name":"HWIOAuthBundle","full_name":"ferrastas/HWIOAuthBundle","owner":{"login":"ferrastas","id":116074,"avatar_url":"https://avatars.githubusercontent.com/u/116074?v=3","gravatar_id":"","url":"https://api.github.com/users/ferrastas","html_url":"https://github.com/ferrastas","followers_url":"https://api.github.com/users/ferrastas/followers","following_url":"https://api.github.com/users/ferrastas/following{/other_user}","gists_url":"https://api.github.com/users/ferrastas/gists{/gist_id}","starred_url":"https://api.github.com/users/ferrastas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferrastas/subscriptions","organizations_url":"https://api.github.com/users/ferrastas/orgs","repos_url":"https://api.github.com/users/ferrastas/repos","events_url":"https://api.github.com/users/ferrastas/events{/privacy}","received_events_url":"https://api.github.com/users/ferrastas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ferrastas/HWIOAuthBundle","description":"OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.","fork":true,"url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle","forks_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/forks","keys_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/teams","hooks_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/hooks","issue_events_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/issues/events{/number}","events_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/events","assignees_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/assignees{/user}","branches_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/branches{/branch}","tags_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/tags","blobs_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/languages","stargazers_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/stargazers","contributors_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/contributors","subscribers_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/subscribers","subscription_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/subscription","commits_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/contents/{+path}","compare_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/merges","archive_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/downloads","issues_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/issues{/number}","pulls_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/labels{/name}","releases_url":"https://api.github.com/repos/ferrastas/HWIOAuthBundle/releases{/id}","created_at":"2015-11-26T09:34:34Z","updated_at":"2015-11-26T09:34:35Z","pushed_at":"2015-11-26T09:53:00Z","git_url":"git://github.com/ferrastas/HWIOAuthBundle.git","ssh_url":"git@github.com:ferrastas/HWIOAuthBundle.git","clone_url":"https://github.com/ferrastas/HWIOAuthBundle.git","svn_url":"https://github.com/ferrastas/HWIOAuthBundle","homepage":"","size":1727,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"hwi:master","ref":"master","sha":"fce5a7d851947ae679d529173c3705da197295ea","user":{"login":"hwi","id":1150427,"avatar_url":"https://avatars.githubusercontent.com/u/1150427?v=3","gravatar_id":"","url":"https://api.github.com/users/hwi","html_url":"https://github.com/hwi","followers_url":"https://api.github.com/users/hwi/followers","following_url":"https://api.github.com/users/hwi/following{/other_user}","gists_url":"https://api.github.com/users/hwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwi/subscriptions","organizations_url":"https://api.github.com/users/hwi/orgs","repos_url":"https://api.github.com/users/hwi/repos","events_url":"https://api.github.com/users/hwi/events{/privacy}","received_events_url":"https://api.github.com/users/hwi/received_events","type":"Organization","site_admin":false},"repo":{"id":3601728,"name":"HWIOAuthBundle","full_name":"hwi/HWIOAuthBundle","owner":{"login":"hwi","id":1150427,"avatar_url":"https://avatars.githubusercontent.com/u/1150427?v=3","gravatar_id":"","url":"https://api.github.com/users/hwi","html_url":"https://github.com/hwi","followers_url":"https://api.github.com/users/hwi/followers","following_url":"https://api.github.com/users/hwi/following{/other_user}","gists_url":"https://api.github.com/users/hwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwi/subscriptions","organizations_url":"https://api.github.com/users/hwi/orgs","repos_url":"https://api.github.com/users/hwi/repos","events_url":"https://api.github.com/users/hwi/events{/privacy}","received_events_url":"https://api.github.com/users/hwi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hwi/HWIOAuthBundle","description":"OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.","fork":false,"url":"https://api.github.com/repos/hwi/HWIOAuthBundle","forks_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/forks","keys_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/teams","hooks_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/hooks","issue_events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/events{/number}","events_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/events","assignees_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/assignees{/user}","branches_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/branches{/branch}","tags_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/tags","blobs_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/languages","stargazers_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/stargazers","contributors_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/contributors","subscribers_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/subscribers","subscription_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/subscription","commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/contents/{+path}","compare_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/merges","archive_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/downloads","issues_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues{/number}","pulls_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/labels{/name}","releases_url":"https://api.github.com/repos/hwi/HWIOAuthBundle/releases{/id}","created_at":"2012-03-02T11:56:40Z","updated_at":"2015-11-25T01:46:44Z","pushed_at":"2015-11-25T01:47:25Z","git_url":"git://github.com/hwi/HWIOAuthBundle.git","ssh_url":"git@github.com:hwi/HWIOAuthBundle.git","clone_url":"https://github.com/hwi/HWIOAuthBundle.git","svn_url":"https://github.com/hwi/HWIOAuthBundle","homepage":"","size":2785,"stargazers_count":1047,"watchers_count":1047,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":434,"mirror_url":null,"open_issues_count":231,"forks":434,"open_issues":231,"watchers":1047,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903"},"html":{"href":"https://github.com/hwi/HWIOAuthBundle/pull/903"},"issue":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/903"},"comments":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/issues/903/comments"},"review_comments":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903/comments"},"review_comment":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/pulls/903/commits"},"statuses":{"href":"https://api.github.com/repos/hwi/HWIOAuthBundle/statuses/bebf576540ae01b9f4ec08538120710df79179ec"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}