Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E02361186E for ; Mon, 14 Jul 2014 16:11:07 +0000 (UTC) Received: (qmail 22443 invoked by uid 500); 14 Jul 2014 16:11:05 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 22404 invoked by uid 500); 14 Jul 2014 16:11:05 -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 22392 invoked by uid 99); 14 Jul 2014 16:11:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 16:11:05 +0000 Date: Mon, 14 Jul 2014 16:11:05 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-5877) SCT in a (SAML1.1 + SCT) scenario failing to renew ore reissue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5877?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Colm O hEigeartaigh resolved CXF-5877. -------------------------------------- Resolution: Fixed > SCT in a (SAML1.1 + SCT) scenario failing to renew ore reissue > -------------------------------------------------------------- > > Key: CXF-5877 > URL: https://issues.apache.org/jira/browse/CXF-5877 > Project: CXF > Issue Type: Bug > Reporter: Freddy Exposito > Assignee: Colm O hEigeartaigh > Priority: Minor > Fix For: 2.7.12, 3.0.1 > > Attachments: sct+saml-issue.patch > > > Hi All,=20 > We are having issues working with Secure Conversation and SAML Token rene= wing (or reissuing) SCT in a (SAML1.1 + SCT) scenario (using the mock STS f= or SCTs).=20 > When CXF tries to renew (or reissue) and expired SCT, it includes the Iss= uedTokenOutInterceptor in the interceptors chain (as expected) to renew or= reissue the SAML token.=20 > However, the contextual properties "ws-security.token" and "ws-security.= token.id" =E2=80=98received=E2=80=99 in the IssuedTokenOutInterceptor=20 > are referencing the expired SCT token (added to the context in the Abstra= ctSTSClient) so it tries to renew the SCT token (created by the mock STS) a= gainst the SAML STS failing of course.=20 > If we understand right how this is working, the AbstractSTSClient.renew()= method, when renewing the SCT, must put the token in the RCT going to the = MockSTS but can not put the SCT in=20 > the context that is intended to be used by the IssuedTokenOutInterceptor = that is expecting a SAML token to be there (and it's getting an SCT).=20 > The attached CXF patch fixed the issue for us and illustrate the behaviou= r we are expecting.=20 > Are we missing something here or it's something going on wrong in the way= 'token' and 'token.id'=20 > are being copied from the STSClient to the Interceptors?=20 > Note: In our case we are only using renew and issue but I see the token b= eing added in the AbstractSTSClient.validate() and AbstractSTSClient.cancel= () as well that might be causing an issue too. -- This message was sent by Atlassian JIRA (v6.2#6252)