{"action":"created","issue":{"url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/8","repository_url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples","labels_url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/8/comments","events_url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/8/events","html_url":"https://github.com/ulisesbocchio/spring-boot-security-saml-samples/issues/8","id":254176389,"number":8,"title":"Incoming SAML message is invalid","user":{"login":"jogjayr","id":310271,"avatar_url":"https://avatars2.githubusercontent.com/u/310271?v=4","gravatar_id":"","url":"https://api.github.com/users/jogjayr","html_url":"https://github.com/jogjayr","followers_url":"https://api.github.com/users/jogjayr/followers","following_url":"https://api.github.com/users/jogjayr/following{/other_user}","gists_url":"https://api.github.com/users/jogjayr/gists{/gist_id}","starred_url":"https://api.github.com/users/jogjayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jogjayr/subscriptions","organizations_url":"https://api.github.com/users/jogjayr/orgs","repos_url":"https://api.github.com/users/jogjayr/repos","events_url":"https://api.github.com/users/jogjayr/events{/privacy}","received_events_url":"https://api.github.com/users/jogjayr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T00:50:53Z","updated_at":"2017-08-31T17:47:26Z","closed_at":null,"author_association":"NONE","body":"Here's the stack trace:\r\n\r\n```\r\norg.springframework.security.authentication.AuthenticationServiceException: Incoming SAML message is invalid\r\n\tat org.springframework.security.saml.SAMLProcessingFilter.attemptAuthentication(SAMLProcessingFilter.java:91)\r\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.saml.SAMLEntryPoint.doFilter(SAMLEntryPoint.java:103)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.saml.metadata.MetadataDisplayFilter.doFilter(MetadataDisplayFilter.java:84)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.saml.metadata.MetadataGeneratorFilter.doFilter(MetadataGeneratorFilter.java:87)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)\r\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)\r\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\r\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:522)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)\r\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:1110)\r\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\r\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:785)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1425)\r\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.opensaml.common.SAMLException: Endpoint with message binding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST and URL http://localhost:8080/saml/SSO wasn't found in local metadata\r\n\tat org.springframework.security.saml.util.SAMLUtil.getEndpoint(SAMLUtil.java:357)\r\n\tat org.springframework.security.saml.SAMLProcessingFilter.attemptAuthentication(SAMLProcessingFilter.java:84)\r\n\t... 54 common frames omitted\r\n```\r\n\r\nHere's my Okta configuration:\r\n\r\n<img width=\"724\" alt=\"screen shot 2017-08-30 at 5 48 50 pm\" src=\"https://user-images.githubusercontent.com/310271/29901213-8f2fe476-8dab-11e7-8042-2691e33fbfbc.png\">\r\n\r\n\r\nI also made the following changes:\r\n\r\n*  Set the `entityId` in `OktaSSODemoApplication2.java` to my \"ec-monitoring\" (as it is seen in my screenshot).\r\n* Set `idpNameAliasMap` in `IdPSelectionController.java` to the correct value as per my Okta\r\n* Checked the comments on https://github.com/ulisesbocchio/spring-boot-security-saml-samples/issues/4 . \r\n\r\nAm I missing anything else?"},"comment":{"url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/comments/326371690","html_url":"https://github.com/ulisesbocchio/spring-boot-security-saml-samples/issues/8#issuecomment-326371690","issue_url":"https://api.github.com/repos/ulisesbocchio/spring-boot-security-saml-samples/issues/8","id":326371690,"user":{"login":"ulisesbocchio","id":457225,"avatar_url":"https://avatars1.githubusercontent.com/u/457225?v=4","gravatar_id":"","url":"https://api.github.com/users/ulisesbocchio","html_url":"https://github.com/ulisesbocchio","followers_url":"https://api.github.com/users/ulisesbocchio/followers","following_url":"https://api.github.com/users/ulisesbocchio/following{/other_user}","gists_url":"https://api.github.com/users/ulisesbocchio/gists{/gist_id}","starred_url":"https://api.github.com/users/ulisesbocchio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulisesbocchio/subscriptions","organizations_url":"https://api.github.com/users/ulisesbocchio/orgs","repos_url":"https://api.github.com/users/ulisesbocchio/repos","events_url":"https://api.github.com/users/ulisesbocchio/events{/privacy}","received_events_url":"https://api.github.com/users/ulisesbocchio/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T17:47:26Z","updated_at":"2017-08-31T17:47:26Z","author_association":"OWNER","body":"```log\r\nEndpoint with message binding urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST and URL http://localhost:8080/saml/SSO wasn't found in local metadata\r\n```\r\ncheck out your saml metadata at http://localhost:8080/saml/metadata and see what shows up there. Most likely you don't have POST bindings configured or you changed the URL mappings"}}
{"actor":{"display_login":"ulisesbocchio"}}