{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6","id":70577568,"html_url":"https://github.com/daggerhart/openid-connect-generic/pull/6","diff_url":"https://github.com/daggerhart/openid-connect-generic/pull/6.diff","patch_url":"https://github.com/daggerhart/openid-connect-generic/pull/6.patch","issue_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/6","number":6,"state":"open","locked":false,"title":"Add OpenID Connect button shortcode for insertion on any login form","user":{"login":"robertstaddon","id":1699922,"avatar_url":"https://avatars.githubusercontent.com/u/1699922?v=3","gravatar_id":"","url":"https://api.github.com/users/robertstaddon","html_url":"https://github.com/robertstaddon","followers_url":"https://api.github.com/users/robertstaddon/followers","following_url":"https://api.github.com/users/robertstaddon/following{/other_user}","gists_url":"https://api.github.com/users/robertstaddon/gists{/gist_id}","starred_url":"https://api.github.com/users/robertstaddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertstaddon/subscriptions","organizations_url":"https://api.github.com/users/robertstaddon/orgs","repos_url":"https://api.github.com/users/robertstaddon/repos","events_url":"https://api.github.com/users/robertstaddon/events{/privacy}","received_events_url":"https://api.github.com/users/robertstaddon/received_events","type":"User","site_admin":false},"body":"Adding a simple shortcode for the OpenID Connect login button allows integration with any plugin with a custom login page. For example, the button could be inserted via shortcode into WooCommerce login templates for My Account or Checkout.\r\n\r\nAdditionally, we can add a setting to allow overriding the plugin default of redirecting to the home page after successful authentication and instead redirect back to the origin page on which the OpenID Connect login button was clicked. This results in the expected WordPress behavior for custom login pages (with WooCommerce, for example, after logging into My Account you are viewing your account or after logging in during Checkout you return to the Checkout page). If the origin page is the default wp-login.php page, the user is sent to wherever the WordPress \"redirect_to\" parameter specifies, which is usually the WordPress Dashboard.\r\n\r\nA case could be made for setting this to be the default redirection behavior of the plugin since it corresponds with the default behavior of WordPress. However, I was concerned that others using this plugin may be confused by this change in default functionality so I left it as an optional setting.","created_at":"2016-05-18T18:35:22Z","updated_at":"2016-05-18T18:35:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6/commits","review_comments_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6/comments","review_comment_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/6/comments","statuses_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/statuses/74153ec3634bc6a628ed9f846635c1b1ed4da5e6","head":{"label":"robertstaddon:master","ref":"master","sha":"74153ec3634bc6a628ed9f846635c1b1ed4da5e6","user":{"login":"robertstaddon","id":1699922,"avatar_url":"https://avatars.githubusercontent.com/u/1699922?v=3","gravatar_id":"","url":"https://api.github.com/users/robertstaddon","html_url":"https://github.com/robertstaddon","followers_url":"https://api.github.com/users/robertstaddon/followers","following_url":"https://api.github.com/users/robertstaddon/following{/other_user}","gists_url":"https://api.github.com/users/robertstaddon/gists{/gist_id}","starred_url":"https://api.github.com/users/robertstaddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertstaddon/subscriptions","organizations_url":"https://api.github.com/users/robertstaddon/orgs","repos_url":"https://api.github.com/users/robertstaddon/repos","events_url":"https://api.github.com/users/robertstaddon/events{/privacy}","received_events_url":"https://api.github.com/users/robertstaddon/received_events","type":"User","site_admin":false},"repo":{"id":58683696,"name":"openid-connect-generic","full_name":"robertstaddon/openid-connect-generic","owner":{"login":"robertstaddon","id":1699922,"avatar_url":"https://avatars.githubusercontent.com/u/1699922?v=3","gravatar_id":"","url":"https://api.github.com/users/robertstaddon","html_url":"https://github.com/robertstaddon","followers_url":"https://api.github.com/users/robertstaddon/followers","following_url":"https://api.github.com/users/robertstaddon/following{/other_user}","gists_url":"https://api.github.com/users/robertstaddon/gists{/gist_id}","starred_url":"https://api.github.com/users/robertstaddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertstaddon/subscriptions","organizations_url":"https://api.github.com/users/robertstaddon/orgs","repos_url":"https://api.github.com/users/robertstaddon/repos","events_url":"https://api.github.com/users/robertstaddon/events{/privacy}","received_events_url":"https://api.github.com/users/robertstaddon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertstaddon/openid-connect-generic","description":"WordPress plugin to provide an OpenID Connect Generic client","fork":true,"url":"https://api.github.com/repos/robertstaddon/openid-connect-generic","forks_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/forks","keys_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/teams","hooks_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/hooks","issue_events_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/issues/events{/number}","events_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/events","assignees_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/assignees{/user}","branches_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/branches{/branch}","tags_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/tags","blobs_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/statuses/{sha}","languages_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/languages","stargazers_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/stargazers","contributors_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/contributors","subscribers_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/subscribers","subscription_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/subscription","commits_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/issues/comments{/number}","contents_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/contents/{+path}","compare_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/merges","archive_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/downloads","issues_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/issues{/number}","pulls_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/pulls{/number}","milestones_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/milestones{/number}","notifications_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/labels{/name}","releases_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/releases{/id}","deployments_url":"https://api.github.com/repos/robertstaddon/openid-connect-generic/deployments","created_at":"2016-05-12T23:19:47Z","updated_at":"2016-05-12T23:19:48Z","pushed_at":"2016-05-18T17:27:46Z","git_url":"git://github.com/robertstaddon/openid-connect-generic.git","ssh_url":"git@github.com:robertstaddon/openid-connect-generic.git","clone_url":"https://github.com/robertstaddon/openid-connect-generic.git","svn_url":"https://github.com/robertstaddon/openid-connect-generic","homepage":null,"size":66,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"daggerhart:master","ref":"master","sha":"b737eac5185ae302c201a46ed14449cf9359eeb5","user":{"login":"daggerhart","id":1205329,"avatar_url":"https://avatars.githubusercontent.com/u/1205329?v=3","gravatar_id":"","url":"https://api.github.com/users/daggerhart","html_url":"https://github.com/daggerhart","followers_url":"https://api.github.com/users/daggerhart/followers","following_url":"https://api.github.com/users/daggerhart/following{/other_user}","gists_url":"https://api.github.com/users/daggerhart/gists{/gist_id}","starred_url":"https://api.github.com/users/daggerhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daggerhart/subscriptions","organizations_url":"https://api.github.com/users/daggerhart/orgs","repos_url":"https://api.github.com/users/daggerhart/repos","events_url":"https://api.github.com/users/daggerhart/events{/privacy}","received_events_url":"https://api.github.com/users/daggerhart/received_events","type":"User","site_admin":false},"repo":{"id":35634521,"name":"openid-connect-generic","full_name":"daggerhart/openid-connect-generic","owner":{"login":"daggerhart","id":1205329,"avatar_url":"https://avatars.githubusercontent.com/u/1205329?v=3","gravatar_id":"","url":"https://api.github.com/users/daggerhart","html_url":"https://github.com/daggerhart","followers_url":"https://api.github.com/users/daggerhart/followers","following_url":"https://api.github.com/users/daggerhart/following{/other_user}","gists_url":"https://api.github.com/users/daggerhart/gists{/gist_id}","starred_url":"https://api.github.com/users/daggerhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daggerhart/subscriptions","organizations_url":"https://api.github.com/users/daggerhart/orgs","repos_url":"https://api.github.com/users/daggerhart/repos","events_url":"https://api.github.com/users/daggerhart/events{/privacy}","received_events_url":"https://api.github.com/users/daggerhart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daggerhart/openid-connect-generic","description":"WordPress plugin to provide an OpenID Connect Generic client","fork":false,"url":"https://api.github.com/repos/daggerhart/openid-connect-generic","forks_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/forks","keys_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/teams","hooks_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/hooks","issue_events_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/events{/number}","events_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/events","assignees_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/assignees{/user}","branches_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/branches{/branch}","tags_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/tags","blobs_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/git/refs{/sha}","trees_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/statuses/{sha}","languages_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/languages","stargazers_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/stargazers","contributors_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/contributors","subscribers_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/subscribers","subscription_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/subscription","commits_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/commits{/sha}","git_commits_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/git/commits{/sha}","comments_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/comments{/number}","issue_comment_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/comments{/number}","contents_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/contents/{+path}","compare_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/merges","archive_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/downloads","issues_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues{/number}","pulls_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls{/number}","milestones_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/milestones{/number}","notifications_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/labels{/name}","releases_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/releases{/id}","deployments_url":"https://api.github.com/repos/daggerhart/openid-connect-generic/deployments","created_at":"2015-05-14T20:14:46Z","updated_at":"2016-05-13T21:32:05Z","pushed_at":"2016-05-18T18:35:22Z","git_url":"git://github.com/daggerhart/openid-connect-generic.git","ssh_url":"git@github.com:daggerhart/openid-connect-generic.git","clone_url":"https://github.com/daggerhart/openid-connect-generic.git","svn_url":"https://github.com/daggerhart/openid-connect-generic","homepage":null,"size":54,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6"},"html":{"href":"https://github.com/daggerhart/openid-connect-generic/pull/6"},"issue":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/6"},"comments":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/daggerhart/openid-connect-generic/statuses/74153ec3634bc6a628ed9f846635c1b1ed4da5e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":54,"deletions":4,"changed_files":6}}