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 E0DE99EAD for ; Mon, 28 Nov 2011 08:43:13 +0000 (UTC) Received: (qmail 59184 invoked by uid 500); 28 Nov 2011 08:43:13 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 59162 invoked by uid 500); 28 Nov 2011 08:43:11 -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 59142 invoked by uid 99); 28 Nov 2011 08:43:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 08:43:07 +0000 X-ASF-Spam-Status: No, hits=-1999.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2011 08:43:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 92CDCA34ED for ; Mon, 28 Nov 2011 08:42:46 +0000 (UTC) Date: Mon, 28 Nov 2011 08:42:46 +0000 (UTC) From: "Oliver Wulff (Updated) (JIRA)" To: issues@cxf.apache.org Message-ID: <1038088228.16996.1322469766617.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <608097002.1821.1321952919787.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CXF-3928) Add token validation for OnBehalfOf element in TokenIssueOperation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-3928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Wulff updated CXF-3928: ------------------------------ Attachment: git.diff.patch Implemented the changes and added a unit test where the on-behalf-of token has been issued by SAML realm A and the issued token is a SAML token of realm B > Add token validation for OnBehalfOf element in TokenIssueOperation > ------------------------------------------------------------------ > > Key: CXF-3928 > URL: https://issues.apache.org/jira/browse/CXF-3928 > Project: CXF > Issue Type: Improvement > Components: Services > Affects Versions: 2.5 > Reporter: Oliver Wulff > Attachments: git.diff.patch, git.diff.patch > > > Tokens passed in OnBehalfOf element are not validated. It's the responsibility of the TokenProvider implementation to validate that. > A proposal has been discussed here: > http://cxf.547215.n5.nabble.com/STS-OnBehalfOf-token-validation-SAMLTokenProvider-td5003544.html > OnBehalfOf token validation is moved to the TokenIssueOperation and the ReceivedToken is enhanced with the following attributes: > - was it a token of ws-security header (like ReceivedToken), onbehalfof, actas > - successfully validated (it could be a token which depends on other constraints to be fully accepted) > - original DOM element > - transformed DOM element (used if the token is passed by ref, also supported by SAML spec) > - principal (mostly, you only need the principal to issue a new token) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira