{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/44","repository_url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin","labels_url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/44/comments","events_url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/44/events","html_url":"https://github.com/jenkinsci/zaproxy-plugin/pull/44","id":183274596,"number":44,"title":"Merge mabdelmoez/zaproxy-plugin Development","user":{"login":"mabdelmoez","id":3973917,"avatar_url":"https://avatars.githubusercontent.com/u/3973917?v=3","gravatar_id":"","url":"https://api.github.com/users/mabdelmoez","html_url":"https://github.com/mabdelmoez","followers_url":"https://api.github.com/users/mabdelmoez/followers","following_url":"https://api.github.com/users/mabdelmoez/following{/other_user}","gists_url":"https://api.github.com/users/mabdelmoez/gists{/gist_id}","starred_url":"https://api.github.com/users/mabdelmoez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabdelmoez/subscriptions","organizations_url":"https://api.github.com/users/mabdelmoez/orgs","repos_url":"https://api.github.com/users/mabdelmoez/repos","events_url":"https://api.github.com/users/mabdelmoez/events{/privacy}","received_events_url":"https://api.github.com/users/mabdelmoez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-16T16:01:22Z","updated_at":"2016-10-17T19:35:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/pulls/44","html_url":"https://github.com/jenkinsci/zaproxy-plugin/pull/44","diff_url":"https://github.com/jenkinsci/zaproxy-plugin/pull/44.diff","patch_url":"https://github.com/jenkinsci/zaproxy-plugin/pull/44.patch"},"body":"Addresses issue https://github.com/jenkinsci/zaproxy-plugin/issues/43"},"comment":{"url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/comments/254310028","html_url":"https://github.com/jenkinsci/zaproxy-plugin/pull/44#issuecomment-254310028","issue_url":"https://api.github.com/repos/jenkinsci/zaproxy-plugin/issues/44","id":254310028,"user":{"login":"mabdelmoez","id":3973917,"avatar_url":"https://avatars.githubusercontent.com/u/3973917?v=3","gravatar_id":"","url":"https://api.github.com/users/mabdelmoez","html_url":"https://github.com/mabdelmoez","followers_url":"https://api.github.com/users/mabdelmoez/followers","following_url":"https://api.github.com/users/mabdelmoez/following{/other_user}","gists_url":"https://api.github.com/users/mabdelmoez/gists{/gist_id}","starred_url":"https://api.github.com/users/mabdelmoez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabdelmoez/subscriptions","organizations_url":"https://api.github.com/users/mabdelmoez/orgs","repos_url":"https://api.github.com/users/mabdelmoez/repos","events_url":"https://api.github.com/users/mabdelmoez/events{/privacy}","received_events_url":"https://api.github.com/users/mabdelmoez/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T19:35:48Z","updated_at":"2016-10-17T19:35:48Z","body":"After conducting a few good tests, I will get back to my initial conclusion, the problem is from the API when zapClientAPI.users.setAuthenticationCredentials is called passing the authcredentialsconfigparams.\r\n\r\n**Username** & **Password** are expected regardless of the authentication script type.\r\n\r\n**Please see below:** \r\nContext 2 is ZEST authentication script\r\nContext 3 is JavaScript authentication script\r\n\r\nhttp://localhost:8888/JSON/users/action/setAuthenticationCredentials/?zapapiformat=JSON&apikey=ZAPROXY-PLUGIN&contextId=3&userId=0&authCredentialsConfigParams=Username%3DT%26Password%3DT\r\n\r\n{\"Result\":\"OK\"}\r\n\r\nhttp://localhost:8888/JSON/users/action/setAuthenticationCredentials/?zapapiformat=JSON&apikey=ZAPROXY-PLUGIN&contextId=2&userId=1&authCredentialsConfigParams=Username%3DT%26Password%3DT\r\n\r\n\r\n{\"Result\":\"OK\"}\r\n\r\nhttp://localhost:8888/JSON/users/action/setAuthenticationCredentials/?zapapiformat=JSON&apikey=ZAPROXY-PLUGIN&contextId=3&userId=0&authCredentialsConfigParams=username%3DT%26password%3DT\r\n\r\n{\"code\":\"missing_parameter\",\"message\":\"Missing Parameter\"}\r\n\r\nhttp://localhost:8888/JSON/users/action/setAuthenticationCredentials/?zapapiformat=JSON&apikey=ZAPROXY-PLUGIN&contextId=2&userId=1&authCredentialsConfigParams=username%3DT%26password%3DT\r\n\r\n{\"code\":\"missing_parameter\",\"message\":\"Missing Parameter\"}\r\n\r\nThat leaves the current pull request unchanged, there is no need to add the extension check."}}
{"actor":{"display_login":"mabdelmoez"}}