{"action":"created","comment":{"url":"https://api.github.com/repos/yegor256/netbout/pulls/comments/54966202","id":54966202,"diff_hunk":"@@ -155,6 +155,34 @@ public void redirectsToLoginAndSetsCookie() throws Exception {\n     }\n \n     /**\n+     * TkApp includes authenticated user alias in header.\n+     * @throws Exception If there is some problem inside\n+     * @checkstyle MultipleStringLiteralsCheck (20 lines)\n+     */\n+    @Test\n+    public void hasAuthenticatedUserAliasInHeader() throws Exception {\n+        final String loc = \"http://example.com/whatever\";\n+        final String head = new RsPrint(\n+            new TkApp(new MkBase()).act(\n+                new RqWithHeader(\n+                    new RqWithAuth(\"urn:test:1\"),\n+                    String.format(\n+                        \"Cookie: RsReturn=%s\",\n+                        URLEncoder.encode(loc, Charset.defaultCharset().name())\n+                    )\n+                )\n+            )\n+        ).printHead();\n+        MatcherAssert.assertThat(\n+            \"Incorrect X-Netbout-Alias header\",\n+            Pattern.compile(\n+                // @checkstyle LineLengthCheck (1 line)\n+                \"^X-Netbout-Alias: tester\",","path":"netbout-web/src/test/java/com/netbout/rest/TkAppTest.java","position":26,"original_position":26,"commit_id":"157a41b0e770a1aa79d8a7152641e2e38ae03e8e","original_commit_id":"157a41b0e770a1aa79d8a7152641e2e38ae03e8e","user":{"login":"kujtimiihoxha","id":14311743,"avatar_url":"https://avatars.githubusercontent.com/u/14311743?v=3","gravatar_id":"","url":"https://api.github.com/users/kujtimiihoxha","html_url":"https://github.com/kujtimiihoxha","followers_url":"https://api.github.com/users/kujtimiihoxha/followers","following_url":"https://api.github.com/users/kujtimiihoxha/following{/other_user}","gists_url":"https://api.github.com/users/kujtimiihoxha/gists{/gist_id}","starred_url":"https://api.github.com/users/kujtimiihoxha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kujtimiihoxha/subscriptions","organizations_url":"https://api.github.com/users/kujtimiihoxha/orgs","repos_url":"https://api.github.com/users/kujtimiihoxha/repos","events_url":"https://api.github.com/users/kujtimiihoxha/events{/privacy}","received_events_url":"https://api.github.com/users/kujtimiihoxha/received_events","type":"User","site_admin":false},"body":"@HDouss  If you start the server locally in the gui there will be an alias called ```tester``` i suspect that this alias is used here to I think this should be returned, @dmzaytsev could you confirm this? ","created_at":"2016-03-03T23:22:53Z","updated_at":"2016-03-03T23:22:53Z","html_url":"https://github.com/yegor256/netbout/pull/1070#discussion_r54966202","pull_request_url":"https://api.github.com/repos/yegor256/netbout/pulls/1070","_links":{"self":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/comments/54966202"},"html":{"href":"https://github.com/yegor256/netbout/pull/1070#discussion_r54966202"},"pull_request":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/1070"}}},"pull_request":{"url":"https://api.github.com/repos/yegor256/netbout/pulls/1070","id":61606793,"html_url":"https://github.com/yegor256/netbout/pull/1070","diff_url":"https://github.com/yegor256/netbout/pull/1070.diff","patch_url":"https://github.com/yegor256/netbout/pull/1070.patch","issue_url":"https://api.github.com/repos/yegor256/netbout/issues/1070","number":1070,"state":"open","locked":false,"title":" #828 X-Netbout-Alias","user":{"login":"kujtimiihoxha","id":14311743,"avatar_url":"https://avatars.githubusercontent.com/u/14311743?v=3","gravatar_id":"","url":"https://api.github.com/users/kujtimiihoxha","html_url":"https://github.com/kujtimiihoxha","followers_url":"https://api.github.com/users/kujtimiihoxha/followers","following_url":"https://api.github.com/users/kujtimiihoxha/following{/other_user}","gists_url":"https://api.github.com/users/kujtimiihoxha/gists{/gist_id}","starred_url":"https://api.github.com/users/kujtimiihoxha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kujtimiihoxha/subscriptions","organizations_url":"https://api.github.com/users/kujtimiihoxha/orgs","repos_url":"https://api.github.com/users/kujtimiihoxha/repos","events_url":"https://api.github.com/users/kujtimiihoxha/events{/privacy}","received_events_url":"https://api.github.com/users/kujtimiihoxha/received_events","type":"User","site_admin":false},"body":"For  #828\r\n - Added header to every authorized response.\r\n - Updated test to see if the header is added.","created_at":"2016-03-03T18:55:06Z","updated_at":"2016-03-03T23:22:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f8361ce755ecdd18f7e73a0d5c805da7d92e4c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yegor256/netbout/pulls/1070/commits","review_comments_url":"https://api.github.com/repos/yegor256/netbout/pulls/1070/comments","review_comment_url":"https://api.github.com/repos/yegor256/netbout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yegor256/netbout/issues/1070/comments","statuses_url":"https://api.github.com/repos/yegor256/netbout/statuses/157a41b0e770a1aa79d8a7152641e2e38ae03e8e","head":{"label":"kujtimiihoxha:kujtimiihoxha-patch3","ref":"kujtimiihoxha-patch3","sha":"157a41b0e770a1aa79d8a7152641e2e38ae03e8e","user":{"login":"kujtimiihoxha","id":14311743,"avatar_url":"https://avatars.githubusercontent.com/u/14311743?v=3","gravatar_id":"","url":"https://api.github.com/users/kujtimiihoxha","html_url":"https://github.com/kujtimiihoxha","followers_url":"https://api.github.com/users/kujtimiihoxha/followers","following_url":"https://api.github.com/users/kujtimiihoxha/following{/other_user}","gists_url":"https://api.github.com/users/kujtimiihoxha/gists{/gist_id}","starred_url":"https://api.github.com/users/kujtimiihoxha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kujtimiihoxha/subscriptions","organizations_url":"https://api.github.com/users/kujtimiihoxha/orgs","repos_url":"https://api.github.com/users/kujtimiihoxha/repos","events_url":"https://api.github.com/users/kujtimiihoxha/events{/privacy}","received_events_url":"https://api.github.com/users/kujtimiihoxha/received_events","type":"User","site_admin":false},"repo":{"id":52666321,"name":"netbout","full_name":"kujtimiihoxha/netbout","owner":{"login":"kujtimiihoxha","id":14311743,"avatar_url":"https://avatars.githubusercontent.com/u/14311743?v=3","gravatar_id":"","url":"https://api.github.com/users/kujtimiihoxha","html_url":"https://github.com/kujtimiihoxha","followers_url":"https://api.github.com/users/kujtimiihoxha/followers","following_url":"https://api.github.com/users/kujtimiihoxha/following{/other_user}","gists_url":"https://api.github.com/users/kujtimiihoxha/gists{/gist_id}","starred_url":"https://api.github.com/users/kujtimiihoxha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kujtimiihoxha/subscriptions","organizations_url":"https://api.github.com/users/kujtimiihoxha/orgs","repos_url":"https://api.github.com/users/kujtimiihoxha/repos","events_url":"https://api.github.com/users/kujtimiihoxha/events{/privacy}","received_events_url":"https://api.github.com/users/kujtimiihoxha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kujtimiihoxha/netbout","description":"Private talks made easy","fork":true,"url":"https://api.github.com/repos/kujtimiihoxha/netbout","forks_url":"https://api.github.com/repos/kujtimiihoxha/netbout/forks","keys_url":"https://api.github.com/repos/kujtimiihoxha/netbout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kujtimiihoxha/netbout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kujtimiihoxha/netbout/teams","hooks_url":"https://api.github.com/repos/kujtimiihoxha/netbout/hooks","issue_events_url":"https://api.github.com/repos/kujtimiihoxha/netbout/issues/events{/number}","events_url":"https://api.github.com/repos/kujtimiihoxha/netbout/events","assignees_url":"https://api.github.com/repos/kujtimiihoxha/netbout/assignees{/user}","branches_url":"https://api.github.com/repos/kujtimiihoxha/netbout/branches{/branch}","tags_url":"https://api.github.com/repos/kujtimiihoxha/netbout/tags","blobs_url":"https://api.github.com/repos/kujtimiihoxha/netbout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kujtimiihoxha/netbout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kujtimiihoxha/netbout/git/refs{/sha}","trees_url":"https://api.github.com/repos/kujtimiihoxha/netbout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kujtimiihoxha/netbout/statuses/{sha}","languages_url":"https://api.github.com/repos/kujtimiihoxha/netbout/languages","stargazers_url":"https://api.github.com/repos/kujtimiihoxha/netbout/stargazers","contributors_url":"https://api.github.com/repos/kujtimiihoxha/netbout/contributors","subscribers_url":"https://api.github.com/repos/kujtimiihoxha/netbout/subscribers","subscription_url":"https://api.github.com/repos/kujtimiihoxha/netbout/subscription","commits_url":"https://api.github.com/repos/kujtimiihoxha/netbout/commits{/sha}","git_commits_url":"https://api.github.com/repos/kujtimiihoxha/netbout/git/commits{/sha}","comments_url":"https://api.github.com/repos/kujtimiihoxha/netbout/comments{/number}","issue_comment_url":"https://api.github.com/repos/kujtimiihoxha/netbout/issues/comments{/number}","contents_url":"https://api.github.com/repos/kujtimiihoxha/netbout/contents/{+path}","compare_url":"https://api.github.com/repos/kujtimiihoxha/netbout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kujtimiihoxha/netbout/merges","archive_url":"https://api.github.com/repos/kujtimiihoxha/netbout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kujtimiihoxha/netbout/downloads","issues_url":"https://api.github.com/repos/kujtimiihoxha/netbout/issues{/number}","pulls_url":"https://api.github.com/repos/kujtimiihoxha/netbout/pulls{/number}","milestones_url":"https://api.github.com/repos/kujtimiihoxha/netbout/milestones{/number}","notifications_url":"https://api.github.com/repos/kujtimiihoxha/netbout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kujtimiihoxha/netbout/labels{/name}","releases_url":"https://api.github.com/repos/kujtimiihoxha/netbout/releases{/id}","deployments_url":"https://api.github.com/repos/kujtimiihoxha/netbout/deployments","created_at":"2016-02-27T12:44:14Z","updated_at":"2016-02-27T12:44:16Z","pushed_at":"2016-03-03T18:53:42Z","git_url":"git://github.com/kujtimiihoxha/netbout.git","ssh_url":"git@github.com:kujtimiihoxha/netbout.git","clone_url":"https://github.com/kujtimiihoxha/netbout.git","svn_url":"https://github.com/kujtimiihoxha/netbout","homepage":"www.netbout.com","size":18003,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"yegor256:master","ref":"master","sha":"e1a5e1d143e0d0bead1d7fe5f2b5a1beabe73d63","user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"repo":{"id":9580819,"name":"netbout","full_name":"yegor256/netbout","owner":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yegor256/netbout","description":"Private talks made easy","fork":false,"url":"https://api.github.com/repos/yegor256/netbout","forks_url":"https://api.github.com/repos/yegor256/netbout/forks","keys_url":"https://api.github.com/repos/yegor256/netbout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yegor256/netbout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yegor256/netbout/teams","hooks_url":"https://api.github.com/repos/yegor256/netbout/hooks","issue_events_url":"https://api.github.com/repos/yegor256/netbout/issues/events{/number}","events_url":"https://api.github.com/repos/yegor256/netbout/events","assignees_url":"https://api.github.com/repos/yegor256/netbout/assignees{/user}","branches_url":"https://api.github.com/repos/yegor256/netbout/branches{/branch}","tags_url":"https://api.github.com/repos/yegor256/netbout/tags","blobs_url":"https://api.github.com/repos/yegor256/netbout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yegor256/netbout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yegor256/netbout/git/refs{/sha}","trees_url":"https://api.github.com/repos/yegor256/netbout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yegor256/netbout/statuses/{sha}","languages_url":"https://api.github.com/repos/yegor256/netbout/languages","stargazers_url":"https://api.github.com/repos/yegor256/netbout/stargazers","contributors_url":"https://api.github.com/repos/yegor256/netbout/contributors","subscribers_url":"https://api.github.com/repos/yegor256/netbout/subscribers","subscription_url":"https://api.github.com/repos/yegor256/netbout/subscription","commits_url":"https://api.github.com/repos/yegor256/netbout/commits{/sha}","git_commits_url":"https://api.github.com/repos/yegor256/netbout/git/commits{/sha}","comments_url":"https://api.github.com/repos/yegor256/netbout/comments{/number}","issue_comment_url":"https://api.github.com/repos/yegor256/netbout/issues/comments{/number}","contents_url":"https://api.github.com/repos/yegor256/netbout/contents/{+path}","compare_url":"https://api.github.com/repos/yegor256/netbout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yegor256/netbout/merges","archive_url":"https://api.github.com/repos/yegor256/netbout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yegor256/netbout/downloads","issues_url":"https://api.github.com/repos/yegor256/netbout/issues{/number}","pulls_url":"https://api.github.com/repos/yegor256/netbout/pulls{/number}","milestones_url":"https://api.github.com/repos/yegor256/netbout/milestones{/number}","notifications_url":"https://api.github.com/repos/yegor256/netbout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yegor256/netbout/labels{/name}","releases_url":"https://api.github.com/repos/yegor256/netbout/releases{/id}","deployments_url":"https://api.github.com/repos/yegor256/netbout/deployments","created_at":"2013-04-21T14:49:21Z","updated_at":"2016-02-28T14:14:11Z","pushed_at":"2016-03-03T20:46:02Z","git_url":"git://github.com/yegor256/netbout.git","ssh_url":"git@github.com:yegor256/netbout.git","clone_url":"https://github.com/yegor256/netbout.git","svn_url":"https://github.com/yegor256/netbout","homepage":"www.netbout.com","size":18070,"stargazers_count":28,"watchers_count":28,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":32,"mirror_url":null,"open_issues_count":98,"forks":32,"open_issues":98,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/1070"},"html":{"href":"https://github.com/yegor256/netbout/pull/1070"},"issue":{"href":"https://api.github.com/repos/yegor256/netbout/issues/1070"},"comments":{"href":"https://api.github.com/repos/yegor256/netbout/issues/1070/comments"},"review_comments":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/1070/comments"},"review_comment":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yegor256/netbout/pulls/1070/commits"},"statuses":{"href":"https://api.github.com/repos/yegor256/netbout/statuses/157a41b0e770a1aa79d8a7152641e2e38ae03e8e"}}}}