{"action":"created","comment":{"url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/comments/136156603","pull_request_review_id":59656110,"id":136156603,"diff_hunk":"@@ -171,12 +171,16 @@ public Long getUserIdFromAuthorizationHeader(String configurationId, String auth\n    * token\n    */\n   public JwtPayload getJwtToken(String configurationId, String authorizationHeader) {\n-    if (StringUtils.isEmpty(authorizationHeader) || (!authorizationHeader.startsWith(\n-        AUTHORIZATION_HEADER_PREFIX))) {\n-      return null;\n+    if (!StringUtils.isEmpty(authorizationHeader)) {","path":"integration-auth/src/main/java/org/symphonyoss/integration/authentication/jwt/JwtAuthenticationImpl.java","position":16,"original_position":16,"commit_id":"bc586d0876f578880431f966f5a61848215c0332","original_commit_id":"bc586d0876f578880431f966f5a61848215c0332","user":{"login":"rsanchez-daitan","id":18399955,"avatar_url":"https://avatars1.githubusercontent.com/u/18399955?v=4","gravatar_id":"","url":"https://api.github.com/users/rsanchez-daitan","html_url":"https://github.com/rsanchez-daitan","followers_url":"https://api.github.com/users/rsanchez-daitan/followers","following_url":"https://api.github.com/users/rsanchez-daitan/following{/other_user}","gists_url":"https://api.github.com/users/rsanchez-daitan/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchez-daitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchez-daitan/subscriptions","organizations_url":"https://api.github.com/users/rsanchez-daitan/orgs","repos_url":"https://api.github.com/users/rsanchez-daitan/repos","events_url":"https://api.github.com/users/rsanchez-daitan/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchez-daitan/received_events","type":"User","site_admin":false},"body":"You might use a simple if clause to solve this.\r\n\r\n```\r\nif ((StringUtils.isNotEmpty(authorizationHeader) && (authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX))) {\r\n    String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length());\r\n    return parseJwtPayload(configurationId, jwt);\r\n}\r\n```","created_at":"2017-08-30T18:43:39Z","updated_at":"2017-08-30T18:46:34Z","html_url":"https://github.com/symphonyoss/App-Integrations-Core/pull/121#discussion_r136156603","pull_request_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/comments/136156603"},"html":{"href":"https://github.com/symphonyoss/App-Integrations-Core/pull/121#discussion_r136156603"},"pull_request":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121","id":138495876,"html_url":"https://github.com/symphonyoss/App-Integrations-Core/pull/121","diff_url":"https://github.com/symphonyoss/App-Integrations-Core/pull/121.diff","patch_url":"https://github.com/symphonyoss/App-Integrations-Core/pull/121.patch","issue_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/121","number":121,"state":"open","locked":false,"title":"App 1209 - FE feature to check user's OAuth session on IB","user":{"login":"campidelli","id":8921350,"avatar_url":"https://avatars2.githubusercontent.com/u/8921350?v=4","gravatar_id":"","url":"https://api.github.com/users/campidelli","html_url":"https://github.com/campidelli","followers_url":"https://api.github.com/users/campidelli/followers","following_url":"https://api.github.com/users/campidelli/following{/other_user}","gists_url":"https://api.github.com/users/campidelli/gists{/gist_id}","starred_url":"https://api.github.com/users/campidelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campidelli/subscriptions","organizations_url":"https://api.github.com/users/campidelli/orgs","repos_url":"https://api.github.com/users/campidelli/repos","events_url":"https://api.github.com/users/campidelli/events{/privacy}","received_events_url":"https://api.github.com/users/campidelli/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-30T18:25:45Z","updated_at":"2017-08-30T18:46:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70773102e9d6e729e30d6b1308ca9baa57fe6511","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121/commits","review_comments_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121/comments","review_comment_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/121/comments","statuses_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/statuses/bc586d0876f578880431f966f5a61848215c0332","head":{"label":"rsanchez-daitan:APP-1209","ref":"APP-1209","sha":"bc586d0876f578880431f966f5a61848215c0332","user":{"login":"rsanchez-daitan","id":18399955,"avatar_url":"https://avatars1.githubusercontent.com/u/18399955?v=4","gravatar_id":"","url":"https://api.github.com/users/rsanchez-daitan","html_url":"https://github.com/rsanchez-daitan","followers_url":"https://api.github.com/users/rsanchez-daitan/followers","following_url":"https://api.github.com/users/rsanchez-daitan/following{/other_user}","gists_url":"https://api.github.com/users/rsanchez-daitan/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchez-daitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchez-daitan/subscriptions","organizations_url":"https://api.github.com/users/rsanchez-daitan/orgs","repos_url":"https://api.github.com/users/rsanchez-daitan/repos","events_url":"https://api.github.com/users/rsanchez-daitan/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchez-daitan/received_events","type":"User","site_admin":false},"repo":{"id":77629450,"name":"App-Integrations-Core","full_name":"rsanchez-daitan/App-Integrations-Core","owner":{"login":"rsanchez-daitan","id":18399955,"avatar_url":"https://avatars1.githubusercontent.com/u/18399955?v=4","gravatar_id":"","url":"https://api.github.com/users/rsanchez-daitan","html_url":"https://github.com/rsanchez-daitan","followers_url":"https://api.github.com/users/rsanchez-daitan/followers","following_url":"https://api.github.com/users/rsanchez-daitan/following{/other_user}","gists_url":"https://api.github.com/users/rsanchez-daitan/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchez-daitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchez-daitan/subscriptions","organizations_url":"https://api.github.com/users/rsanchez-daitan/orgs","repos_url":"https://api.github.com/users/rsanchez-daitan/repos","events_url":"https://api.github.com/users/rsanchez-daitan/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchez-daitan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsanchez-daitan/App-Integrations-Core","description":"Core components for Symphony App Integrations.","fork":true,"url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core","forks_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/forks","keys_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/teams","hooks_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/hooks","issue_events_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/issues/events{/number}","events_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/events","assignees_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/assignees{/user}","branches_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/branches{/branch}","tags_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/tags","blobs_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/statuses/{sha}","languages_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/languages","stargazers_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/stargazers","contributors_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/contributors","subscribers_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/subscribers","subscription_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/subscription","commits_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/contents/{+path}","compare_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/merges","archive_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/downloads","issues_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/issues{/number}","pulls_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/pulls{/number}","milestones_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/milestones{/number}","notifications_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/labels{/name}","releases_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/releases{/id}","deployments_url":"https://api.github.com/repos/rsanchez-daitan/App-Integrations-Core/deployments","created_at":"2016-12-29T17:43:06Z","updated_at":"2016-12-29T17:43:08Z","pushed_at":"2017-08-30T18:19:11Z","git_url":"git://github.com/rsanchez-daitan/App-Integrations-Core.git","ssh_url":"git@github.com:rsanchez-daitan/App-Integrations-Core.git","clone_url":"https://github.com/rsanchez-daitan/App-Integrations-Core.git","svn_url":"https://github.com/rsanchez-daitan/App-Integrations-Core","homepage":"","size":4371,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"dev"}},"base":{"label":"symphonyoss:dev","ref":"dev","sha":"15b958ce61c1e42116da7465f0b994e851472799","user":{"login":"symphonyoss","id":16778380,"avatar_url":"https://avatars1.githubusercontent.com/u/16778380?v=4","gravatar_id":"","url":"https://api.github.com/users/symphonyoss","html_url":"https://github.com/symphonyoss","followers_url":"https://api.github.com/users/symphonyoss/followers","following_url":"https://api.github.com/users/symphonyoss/following{/other_user}","gists_url":"https://api.github.com/users/symphonyoss/gists{/gist_id}","starred_url":"https://api.github.com/users/symphonyoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symphonyoss/subscriptions","organizations_url":"https://api.github.com/users/symphonyoss/orgs","repos_url":"https://api.github.com/users/symphonyoss/repos","events_url":"https://api.github.com/users/symphonyoss/events{/privacy}","received_events_url":"https://api.github.com/users/symphonyoss/received_events","type":"Organization","site_admin":false},"repo":{"id":76588998,"name":"App-Integrations-Core","full_name":"symphonyoss/App-Integrations-Core","owner":{"login":"symphonyoss","id":16778380,"avatar_url":"https://avatars1.githubusercontent.com/u/16778380?v=4","gravatar_id":"","url":"https://api.github.com/users/symphonyoss","html_url":"https://github.com/symphonyoss","followers_url":"https://api.github.com/users/symphonyoss/followers","following_url":"https://api.github.com/users/symphonyoss/following{/other_user}","gists_url":"https://api.github.com/users/symphonyoss/gists{/gist_id}","starred_url":"https://api.github.com/users/symphonyoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symphonyoss/subscriptions","organizations_url":"https://api.github.com/users/symphonyoss/orgs","repos_url":"https://api.github.com/users/symphonyoss/repos","events_url":"https://api.github.com/users/symphonyoss/events{/privacy}","received_events_url":"https://api.github.com/users/symphonyoss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symphonyoss/App-Integrations-Core","description":"Core components for Symphony App Integrations.","fork":false,"url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core","forks_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/forks","keys_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/teams","hooks_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/hooks","issue_events_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/events{/number}","events_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/events","assignees_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/assignees{/user}","branches_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/branches{/branch}","tags_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/tags","blobs_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/git/refs{/sha}","trees_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/statuses/{sha}","languages_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/languages","stargazers_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/stargazers","contributors_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/contributors","subscribers_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/subscribers","subscription_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/subscription","commits_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/commits{/sha}","git_commits_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/git/commits{/sha}","comments_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/comments{/number}","issue_comment_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/comments{/number}","contents_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/contents/{+path}","compare_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/merges","archive_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/downloads","issues_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues{/number}","pulls_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls{/number}","milestones_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/milestones{/number}","notifications_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/labels{/name}","releases_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/releases{/id}","deployments_url":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/deployments","created_at":"2016-12-15T19:23:53Z","updated_at":"2017-01-23T17:33:58Z","pushed_at":"2017-08-30T18:25:46Z","git_url":"git://github.com/symphonyoss/App-Integrations-Core.git","ssh_url":"git@github.com:symphonyoss/App-Integrations-Core.git","clone_url":"https://github.com/symphonyoss/App-Integrations-Core.git","svn_url":"https://github.com/symphonyoss/App-Integrations-Core","homepage":"","size":4369,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121"},"html":{"href":"https://github.com/symphonyoss/App-Integrations-Core/pull/121"},"issue":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/121"},"comments":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/symphonyoss/App-Integrations-Core/statuses/bc586d0876f578880431f966f5a61848215c0332"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"rsanchez-daitan"}}