{"action":"created","comment":{"url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/comments/33376746","id":33376746,"diff_hunk":"@@ -48,6 +48,23 @@\n       visit 'http://localhost:8020/'\n       expect(current_url).to match(%r(\\Ahttp://localhost:8009/saml/auth\\?SAMLRequest=))\n     end\n+\n+    it 'logs a user out of the SP via the IpD' do\n+      create_user(\"you@example.com\")\n+\n+      visit 'http://localhost:8020/'\n+      expect(current_url).to match(%r(\\Ahttp://localhost:8009/saml/auth\\?SAMLRequest=))\n+      fill_in \"Email\", with: \"you@example.com\"\n+      fill_in \"Password\", with: \"asdf\"\n+      click_on \"Sign in\"\n+      expect(page).to have_content(\"you@example.com\")\n+      expect(current_url).to eq(\"http://localhost:8020/\")","path":"spec/features/saml_authentication_spec.rb","position":14,"original_position":14,"commit_id":"f57cb20cde3bd98f4c0bc08459b4fd7206ff5b25","original_commit_id":"f57cb20cde3bd98f4c0bc08459b4fd7206ff5b25","user":{"login":"adamstegman","id":286694,"avatar_url":"https://avatars.githubusercontent.com/u/286694?v=3","gravatar_id":"","url":"https://api.github.com/users/adamstegman","html_url":"https://github.com/adamstegman","followers_url":"https://api.github.com/users/adamstegman/followers","following_url":"https://api.github.com/users/adamstegman/following{/other_user}","gists_url":"https://api.github.com/users/adamstegman/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstegman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstegman/subscriptions","organizations_url":"https://api.github.com/users/adamstegman/orgs","repos_url":"https://api.github.com/users/adamstegman/repos","events_url":"https://api.github.com/users/adamstegman/events{/privacy}","received_events_url":"https://api.github.com/users/adamstegman/received_events","type":"User","site_admin":false},"body":"Minor note, but you can use `sign_in` instead of this copy-pasted code.","created_at":"2015-06-26T17:29:17Z","updated_at":"2015-06-26T17:29:17Z","html_url":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19#discussion_r33376746","pull_request_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/comments/33376746"},"html":{"href":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19#discussion_r33376746"},"pull_request":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19","id":38463141,"html_url":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19","diff_url":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19.diff","patch_url":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19.patch","issue_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/19","number":19,"state":"open","locked":false,"title":"IDP Initiated Logout","user":{"login":"mitch-lindsay","id":1126539,"avatar_url":"https://avatars.githubusercontent.com/u/1126539?v=3","gravatar_id":"","url":"https://api.github.com/users/mitch-lindsay","html_url":"https://github.com/mitch-lindsay","followers_url":"https://api.github.com/users/mitch-lindsay/followers","following_url":"https://api.github.com/users/mitch-lindsay/following{/other_user}","gists_url":"https://api.github.com/users/mitch-lindsay/gists{/gist_id}","starred_url":"https://api.github.com/users/mitch-lindsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitch-lindsay/subscriptions","organizations_url":"https://api.github.com/users/mitch-lindsay/orgs","repos_url":"https://api.github.com/users/mitch-lindsay/repos","events_url":"https://api.github.com/users/mitch-lindsay/events{/privacy}","received_events_url":"https://api.github.com/users/mitch-lindsay/received_events","type":"User","site_admin":false},"body":"Allow for IDP initiated logout requests by using the login request generated session index to uniquely key the users session.  When a logout request is received, remove that key, thus invalidating the users session.  To enable this functionality, define the saml_session_index_key config value and create the corresponding column on the resource table.","created_at":"2015-06-24T16:51:02Z","updated_at":"2015-06-26T17:29:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fce265cf96afa33f70b76f58b949df776331ea5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19/commits","review_comments_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19/comments","review_comment_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/19/comments","statuses_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/statuses/f57cb20cde3bd98f4c0bc08459b4fd7206ff5b25","head":{"label":"apokalipto:idp_initiated_logout","ref":"idp_initiated_logout","sha":"f57cb20cde3bd98f4c0bc08459b4fd7206ff5b25","user":{"login":"apokalipto","id":79377,"avatar_url":"https://avatars.githubusercontent.com/u/79377?v=3","gravatar_id":"","url":"https://api.github.com/users/apokalipto","html_url":"https://github.com/apokalipto","followers_url":"https://api.github.com/users/apokalipto/followers","following_url":"https://api.github.com/users/apokalipto/following{/other_user}","gists_url":"https://api.github.com/users/apokalipto/gists{/gist_id}","starred_url":"https://api.github.com/users/apokalipto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apokalipto/subscriptions","organizations_url":"https://api.github.com/users/apokalipto/orgs","repos_url":"https://api.github.com/users/apokalipto/repos","events_url":"https://api.github.com/users/apokalipto/events{/privacy}","received_events_url":"https://api.github.com/users/apokalipto/received_events","type":"User","site_admin":false},"repo":{"id":9569227,"name":"devise_saml_authenticatable","full_name":"apokalipto/devise_saml_authenticatable","owner":{"login":"apokalipto","id":79377,"avatar_url":"https://avatars.githubusercontent.com/u/79377?v=3","gravatar_id":"","url":"https://api.github.com/users/apokalipto","html_url":"https://github.com/apokalipto","followers_url":"https://api.github.com/users/apokalipto/followers","following_url":"https://api.github.com/users/apokalipto/following{/other_user}","gists_url":"https://api.github.com/users/apokalipto/gists{/gist_id}","starred_url":"https://api.github.com/users/apokalipto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apokalipto/subscriptions","organizations_url":"https://api.github.com/users/apokalipto/orgs","repos_url":"https://api.github.com/users/apokalipto/repos","events_url":"https://api.github.com/users/apokalipto/events{/privacy}","received_events_url":"https://api.github.com/users/apokalipto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apokalipto/devise_saml_authenticatable","description":"Devise SAML 2.0 authentication strategy","fork":false,"url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable","forks_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/forks","keys_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/teams","hooks_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/hooks","issue_events_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/events{/number}","events_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/events","assignees_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/assignees{/user}","branches_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/branches{/branch}","tags_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/tags","blobs_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/refs{/sha}","trees_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/statuses/{sha}","languages_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/languages","stargazers_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/stargazers","contributors_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/contributors","subscribers_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/subscribers","subscription_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/subscription","commits_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/commits{/sha}","git_commits_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/commits{/sha}","comments_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/comments{/number}","issue_comment_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/comments{/number}","contents_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/contents/{+path}","compare_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/merges","archive_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/downloads","issues_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues{/number}","pulls_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls{/number}","milestones_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/milestones{/number}","notifications_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/labels{/name}","releases_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/releases{/id}","created_at":"2013-04-20T19:11:01Z","updated_at":"2015-06-18T18:25:38Z","pushed_at":"2015-06-26T17:18:18Z","git_url":"git://github.com/apokalipto/devise_saml_authenticatable.git","ssh_url":"git@github.com:apokalipto/devise_saml_authenticatable.git","clone_url":"https://github.com/apokalipto/devise_saml_authenticatable.git","svn_url":"https://github.com/apokalipto/devise_saml_authenticatable","homepage":null,"size":418,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":2,"forks":24,"open_issues":2,"watchers":25,"default_branch":"master"}},"base":{"label":"apokalipto:master","ref":"master","sha":"c8d308efafa57a8e16ed9d1517abd1429d6e3e72","user":{"login":"apokalipto","id":79377,"avatar_url":"https://avatars.githubusercontent.com/u/79377?v=3","gravatar_id":"","url":"https://api.github.com/users/apokalipto","html_url":"https://github.com/apokalipto","followers_url":"https://api.github.com/users/apokalipto/followers","following_url":"https://api.github.com/users/apokalipto/following{/other_user}","gists_url":"https://api.github.com/users/apokalipto/gists{/gist_id}","starred_url":"https://api.github.com/users/apokalipto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apokalipto/subscriptions","organizations_url":"https://api.github.com/users/apokalipto/orgs","repos_url":"https://api.github.com/users/apokalipto/repos","events_url":"https://api.github.com/users/apokalipto/events{/privacy}","received_events_url":"https://api.github.com/users/apokalipto/received_events","type":"User","site_admin":false},"repo":{"id":9569227,"name":"devise_saml_authenticatable","full_name":"apokalipto/devise_saml_authenticatable","owner":{"login":"apokalipto","id":79377,"avatar_url":"https://avatars.githubusercontent.com/u/79377?v=3","gravatar_id":"","url":"https://api.github.com/users/apokalipto","html_url":"https://github.com/apokalipto","followers_url":"https://api.github.com/users/apokalipto/followers","following_url":"https://api.github.com/users/apokalipto/following{/other_user}","gists_url":"https://api.github.com/users/apokalipto/gists{/gist_id}","starred_url":"https://api.github.com/users/apokalipto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apokalipto/subscriptions","organizations_url":"https://api.github.com/users/apokalipto/orgs","repos_url":"https://api.github.com/users/apokalipto/repos","events_url":"https://api.github.com/users/apokalipto/events{/privacy}","received_events_url":"https://api.github.com/users/apokalipto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apokalipto/devise_saml_authenticatable","description":"Devise SAML 2.0 authentication strategy","fork":false,"url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable","forks_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/forks","keys_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/teams","hooks_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/hooks","issue_events_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/events{/number}","events_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/events","assignees_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/assignees{/user}","branches_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/branches{/branch}","tags_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/tags","blobs_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/refs{/sha}","trees_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/statuses/{sha}","languages_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/languages","stargazers_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/stargazers","contributors_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/contributors","subscribers_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/subscribers","subscription_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/subscription","commits_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/commits{/sha}","git_commits_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/git/commits{/sha}","comments_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/comments{/number}","issue_comment_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/comments{/number}","contents_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/contents/{+path}","compare_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/merges","archive_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/downloads","issues_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues{/number}","pulls_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls{/number}","milestones_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/milestones{/number}","notifications_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/labels{/name}","releases_url":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/releases{/id}","created_at":"2013-04-20T19:11:01Z","updated_at":"2015-06-18T18:25:38Z","pushed_at":"2015-06-26T17:18:18Z","git_url":"git://github.com/apokalipto/devise_saml_authenticatable.git","ssh_url":"git@github.com:apokalipto/devise_saml_authenticatable.git","clone_url":"https://github.com/apokalipto/devise_saml_authenticatable.git","svn_url":"https://github.com/apokalipto/devise_saml_authenticatable","homepage":null,"size":418,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":2,"forks":24,"open_issues":2,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19"},"html":{"href":"https://github.com/apokalipto/devise_saml_authenticatable/pull/19"},"issue":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/19"},"comments":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/apokalipto/devise_saml_authenticatable/statuses/f57cb20cde3bd98f4c0bc08459b4fd7206ff5b25"}}}}