{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/5","labels_url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/5/comments","events_url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/5/events","html_url":"https://github.com/spring-projects/spring-security-kerberos/pull/5","id":31137375,"number":5,"title":"WWW-Authenticate response and encrypt/decrypt capability","user":{"login":"jeremystone","id":6453521,"avatar_url":"https://avatars.githubusercontent.com/u/6453521?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremystone","html_url":"https://github.com/jeremystone","followers_url":"https://api.github.com/users/jeremystone/followers","following_url":"https://api.github.com/users/jeremystone/following{/other_user}","gists_url":"https://api.github.com/users/jeremystone/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremystone/subscriptions","organizations_url":"https://api.github.com/users/jeremystone/orgs","repos_url":"https://api.github.com/users/jeremystone/repos","events_url":"https://api.github.com/users/jeremystone/events{/privacy}","received_events_url":"https://api.github.com/users/jeremystone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-04-09T08:14:02Z","updated_at":"2015-02-26T14:07:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/pulls/5","html_url":"https://github.com/spring-projects/spring-security-kerberos/pull/5","diff_url":"https://github.com/spring-projects/spring-security-kerberos/pull/5.diff","patch_url":"https://github.com/spring-projects/spring-security-kerberos/pull/5.patch"},"body":"Have added two extra pieces of functionality that are essential when setting up a servlet to receive pushed WinRM SOAP events from the Microsoft WS-Management implementation:\r\n\r\n(1) The WinRM client will refuse to talk to the servlet unless we respond to the Negotiate (or Kerberos) 'Authorization' header with an appropriate WWW-Authenticate response.\r\nTo this end have modified the KerberosTicketValidator so that it returns not just the user name but other information including the token returned by acceptSecContext in a new KerberosTicketValidation object.\r\n\r\nThis KerberosTicketValidation can then be used in a (new) ResponseHeaderSettingKerberosAuthenticationSuccessHandler which performs the setting of the WWW-Authenticate response header using the security context token.\r\n\r\n(2) In order to go on to receive events, which the WinRM client sends in an encrypted pseudo MIME request, the ability to decrypt these (using the GSS API unwrap function) is also required. Hence the GSSContext is optionally also kept within the KerberosTicketValidation (default behaviour is to dispose it to provide backward compatibility) along with a couple of decrypt/encrypt methods that use it.\r\n\r\nHope that these can be incorporated into the main code.\r\n\r\nThanks,\r\nJeremy Stone\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/comments/76183216","html_url":"https://github.com/spring-projects/spring-security-kerberos/pull/5#issuecomment-76183216","issue_url":"https://api.github.com/repos/spring-projects/spring-security-kerberos/issues/5","id":76183216,"user":{"login":"jvalkeal","id":50398,"avatar_url":"https://avatars.githubusercontent.com/u/50398?v=3","gravatar_id":"","url":"https://api.github.com/users/jvalkeal","html_url":"https://github.com/jvalkeal","followers_url":"https://api.github.com/users/jvalkeal/followers","following_url":"https://api.github.com/users/jvalkeal/following{/other_user}","gists_url":"https://api.github.com/users/jvalkeal/gists{/gist_id}","starred_url":"https://api.github.com/users/jvalkeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvalkeal/subscriptions","organizations_url":"https://api.github.com/users/jvalkeal/orgs","repos_url":"https://api.github.com/users/jvalkeal/repos","events_url":"https://api.github.com/users/jvalkeal/events{/privacy}","received_events_url":"https://api.github.com/users/jvalkeal/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T14:07:36Z","updated_at":"2015-02-26T14:07:36Z","body":"@jeremystone looking this now, have you signed our CLA https://support.springsource.com/spring_committer_signup?"}}