Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 260B2200B84 for ; Mon, 5 Sep 2016 12:50:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 231FE160ABC; Mon, 5 Sep 2016 10:50:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 72B02160ACB for ; Mon, 5 Sep 2016 12:50:22 +0200 (CEST) Received: (qmail 33186 invoked by uid 500); 5 Sep 2016 10:50:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 33162 invoked by uid 99); 5 Sep 2016 10:50:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 10:50:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 640C82C1B77 for ; Mon, 5 Sep 2016 10:50:21 +0000 (UTC) Date: Mon, 5 Sep 2016 10:50:21 +0000 (UTC) From: "Michal Sabo (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7039) JAX-RS Security SAML web SSO consumer service can not validate SAML response behind reverse proxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Sep 2016 10:50:23 -0000 [ https://issues.apache.org/jira/browse/CXF-7039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michal Sabo updated CXF-7039: ----------------------------- Description: During the SAML web SSO processing, the RequestAssertionConsumerService validates the request using org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator using a wrong assertionConsumerURL. The SAML request (org.opensaml.saml2.core.AuthnRequest) is configured with the serviceURL (taken as the org.apache.cxf.rs.security.saml.sso.AbstractServiceProviderFilter.assertionConsumerServiceAddress property), however the org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator is bootstrapped with the following consumer URL: ssoResponseValidator.setAssertionConsumerURL(messageContext.getUriInfo().getAbsolutePath().toString()); This particularly makes a problem when serving the application behind a reverse proxy. was: During the SAML web SSO processing, the RequestAssertionConsumerService validates the request using org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator and uses a wrong assertionConsumerURL. The SAML request (org.opensaml.saml2.core.AuthnRequest) is configured with the serviceURL (taken as the org.apache.cxf.rs.security.saml.sso.AbstractServiceProviderFilter.assertionConsumerServiceAddress property), however the org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator is bootstrapped with the following consumer URL: ssoResponseValidator.setAssertionConsumerURL(messageContext.getUriInfo().getAbsolutePath().toString()); This particularly makes a problem when serving the application behind a reverse proxy. > JAX-RS Security SAML web SSO consumer service can not validate SAML response behind reverse proxy > ------------------------------------------------------------------------------------------------- > > Key: CXF-7039 > URL: https://issues.apache.org/jira/browse/CXF-7039 > Project: CXF > Issue Type: Bug > Components: JAX-RS Security > Affects Versions: 3.0.9 > Environment: JRE 1.8.0_101-b13 > Reporter: Michal Sabo > > During the SAML web SSO processing, the RequestAssertionConsumerService validates the request using org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator using a wrong assertionConsumerURL. > The SAML request (org.opensaml.saml2.core.AuthnRequest) is configured with the serviceURL (taken as the org.apache.cxf.rs.security.saml.sso.AbstractServiceProviderFilter.assertionConsumerServiceAddress property), however the org.apache.cxf.rs.security.saml.sso.SAMLSSOResponseValidator is bootstrapped with the following consumer URL: > ssoResponseValidator.setAssertionConsumerURL(messageContext.getUriInfo().getAbsolutePath().toString()); > This particularly makes a problem when serving the application behind a reverse proxy. -- This message was sent by Atlassian JIRA (v6.3.4#6332)