Hi, What I suggest you to check are: - does the path to metadata accessible by cas ? - is there traces that this service was loaded by cas ? - is it present in the declared services, there is an endpoint for this check but you should include some reporting dependencies - does the sp-metadata.xml contains the ACS url : Assertion consumer service - you can install the Saml tools chrome plugin to check requests and responses
Good luck 🤞 Le mer. 25 sept. 2024 à 20:29, SW Genis <s...@opencollab.co.za> a écrit : > Hi, > > I have CAS set up as a SAML Identity Provider and trying to connect the > sample SAML app: https://github.com/apereo/saml2-sample-java-webapp in > order to test my configuration. > > The sample app redirects to the CAS login screen and it seems that the > authentication is successful however it is not redirecting back to the > sample application. > > In the CAS logs i get the following error: > 2024-09-25 19:28:59,487 INFO [org.apereo.inspektr.audit.AuditTrailManager] > - <Audit trail record BEGIN > ============================================================= > WHEN: 2024-09-25T17:28:59.487808200 > WHO: sisad...@example.org > WHAT: {ticket=ST-1-****************57w9CoE-LTP-59, service= > https://localhost:9876/sp} > ACTION: SERVICE_TICKET_VALIDATE_SUCCESS > CLIENT_IP: 0:0:0:0:0:0:0:1 > SERVER_IP: 0:0:0:0:0:0:0:1 > ============================================================= > > > > 2024-09-25 19:28:59,507 ERROR > [org.apereo.cas.web.support.filters.AbstractSecurityFilter] - <Request > processing failed: > org.springframework.webflow.execution.ActionExecutionException: Exception > thrown executing > org.apereo.cas.web.flow.actions.RedirectToServiceAction@1272ba19 in state > 'redirect' of flow 'login' -- action execution attributes were > 'map[[empty]]' > FrameworkServlet.java:processRequest:1022 > FrameworkServlet.java:doPost:914 > HttpServlet.java:service:653 > FrameworkServlet.java:service:885 > > > 2024-09-25 19:28:59,544 ERROR > [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas].[dispatcherServlet]] > - <Servlet.service() for servlet [dispatcherServlet] in context with path > [/cas] threw exception> > java.lang.RuntimeException: jakarta.servlet.ServletException: Request > processing failed: > org.springframework.webflow.execution.ActionExecutionException: Exception > thrown executing > org.apereo.cas.web.flow.actions.RedirectToServiceAction@1272ba19 in state > 'redirect' of flow 'login' -- action execution attributes were > 'map[[empty]]' > at > org.apereo.cas.web.support.filters.AbstractSecurityFilter.throwException(AbstractSecurityFilter.java:42) > at > org.apereo.cas.web.support.filters.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:190) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) > at > org.apereo.cas.web.support.filters.AddResponseHeadersFilter.doFilter(AddResponseHeadersFilter.java:62) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) > at > org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108) > at > org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231) > > My Service config: > { > "@class" : "org.apereo.cas.support.saml.services.SamlRegisteredService", > "serviceId" : "https://localhost:9876/sp", > "name" : "Sample", > "id" : 100, > "metadataLocation" : "C:\\etc\\cas\\services\\sp\\sp-metadata.xml", > "attributeReleasePolicy" : { > "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy" > }, > "requiredNameIdFormat": > "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", > > Any help will be appreciated. > Thanks in advance. > > > > -- > - Website: https://apereo.github.io/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cas-user+unsubscr...@apereo.org. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/d7812213-7990-4f0c-a5fc-9183514ccb98n%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d7812213-7990-4f0c-a5fc-9183514ccb98n%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CALmwvcZmCzspEKEV2jpFw0hLjPGrLHHuOAaJV2s4DujD6wv-uw%40mail.gmail.com.