{"action":"created","issue":{"url":"https://api.github.com/repos/lastpass/jira-saml/issues/1","labels_url":"https://api.github.com/repos/lastpass/jira-saml/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lastpass/jira-saml/issues/1/comments","events_url":"https://api.github.com/repos/lastpass/jira-saml/issues/1/events","html_url":"https://github.com/lastpass/jira-saml/issues/1","id":107050151,"number":1,"title":"java.lang.NullPointerException: org.opensaml.xml.signature.SignatureValidator.buildSignature","user":{"login":"KiloKilo7","id":14220542,"avatar_url":"https://avatars.githubusercontent.com/u/14220542?v=3","gravatar_id":"","url":"https://api.github.com/users/KiloKilo7","html_url":"https://github.com/KiloKilo7","followers_url":"https://api.github.com/users/KiloKilo7/followers","following_url":"https://api.github.com/users/KiloKilo7/following{/other_user}","gists_url":"https://api.github.com/users/KiloKilo7/gists{/gist_id}","starred_url":"https://api.github.com/users/KiloKilo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiloKilo7/subscriptions","organizations_url":"https://api.github.com/users/KiloKilo7/orgs","repos_url":"https://api.github.com/users/KiloKilo7/repos","events_url":"https://api.github.com/users/KiloKilo7/events{/privacy}","received_events_url":"https://api.github.com/users/KiloKilo7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-17T18:56:49Z","updated_at":"2015-09-18T12:32:22Z","closed_at":null,"body":"According to the SAML specification it's not mandatory to have the \"SessionOnOrAfter\" attribute within the \"AuthnStatement\" though the plugin code checks for that. Add it by modifying the buildSAMLAssertion method in ResponseBuilder class.\r\n\r\njava.lang.NullPointerException\r\n\torg.opensaml.xml.signature.SignatureValidator.buildSignature(SignatureValidator.java:92)\r\n\torg.opensaml.xml.signature.SignatureValidator.validate(SignatureValidator.java:56)\r\n\tcom.lastpass.saml.SAMLClient.validate(SAMLClient.java:171)\r\n\tcom.lastpass.saml.SAMLClient.validateResponse(SAMLClient.java:429)\r\n\tcom.lastpass.jira.SAMLAuthenticator.getUser(SAMLAuthenticator.java:195)"},"comment":{"url":"https://api.github.com/repos/lastpass/jira-saml/issues/comments/141439392","html_url":"https://github.com/lastpass/jira-saml/issues/1#issuecomment-141439392","issue_url":"https://api.github.com/repos/lastpass/jira-saml/issues/1","id":141439392,"user":{"login":"KiloKilo7","id":14220542,"avatar_url":"https://avatars.githubusercontent.com/u/14220542?v=3","gravatar_id":"","url":"https://api.github.com/users/KiloKilo7","html_url":"https://github.com/KiloKilo7","followers_url":"https://api.github.com/users/KiloKilo7/followers","following_url":"https://api.github.com/users/KiloKilo7/following{/other_user}","gists_url":"https://api.github.com/users/KiloKilo7/gists{/gist_id}","starred_url":"https://api.github.com/users/KiloKilo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiloKilo7/subscriptions","organizations_url":"https://api.github.com/users/KiloKilo7/orgs","repos_url":"https://api.github.com/users/KiloKilo7/repos","events_url":"https://api.github.com/users/KiloKilo7/events{/privacy}","received_events_url":"https://api.github.com/users/KiloKilo7/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T12:32:22Z","updated_at":"2015-09-18T12:32:22Z","body":"Sorry, I thought this was related to another similar issue I saw regarding \"SessionOnOrAfter\" . I can see it is different now. For some reason, it is failing when   Signature sig = response.getSignature();\r\n        sigValidator.validate(sig);"}}