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 8E5F1200BB2 for ; Fri, 14 Oct 2016 18:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8D286160AD3; Fri, 14 Oct 2016 16:10:22 +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 DD3AE160ADD for ; Fri, 14 Oct 2016 18:10:21 +0200 (CEST) Received: (qmail 89717 invoked by uid 500); 14 Oct 2016 16:10: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 89658 invoked by uid 99); 14 Oct 2016 16:10:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 16:10:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7AC542C4C72 for ; Fri, 14 Oct 2016 16:10:20 +0000 (UTC) Date: Fri, 14 Oct 2016 16:10:20 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7088) SignedEncryptedSupportingTokens in WS-Policy and SAML not encrypted being accepted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 16:10:22 -0000 [ https://issues.apache.org/jira/browse/CXF-7088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15575740#comment-15575740 ] Colm O hEigeartaigh commented on CXF-7088: ------------------------------------------ Ok I'm going to fix this by requiring that an EncryptedToken is encrypted at the message level unless a TransportBinding is explicitly used. Colm. > SignedEncryptedSupportingTokens in WS-Policy and SAML not encrypted being accepted > ---------------------------------------------------------------------------------- > > Key: CXF-7088 > URL: https://issues.apache.org/jira/browse/CXF-7088 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.6 > Reporter: Grzegorz Maczuga > Assignee: Colm O hEigeartaigh > Fix For: 3.2.0, 3.1.8, 3.0.11 > > Attachments: messageNoEncryption.txt, message_anonymous.txt, policy.txt > > > In WS-Policy that is used by service we have defined > > Some people say that WS-SecurityPolicy 1.2 imply that also SAML assertion that is inside WS-Security section of the message SOAP Header should be encrypted (not only signed). > Message with SAML that is NOT encrypted is currently accepted by CXF even while policy defines > Question is: does SAML assertion fall into "SupportingTokens" category and should be encrypted as well? > What is your view on that? Is that a bug in Neethi? > See http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/ws-securitypolicy-1.2-spec-os.html#_Toc161826566 > Signed, encrypted supporting tokens are Signed supporting tokens (See section 8.2) that are also encrypted when they appear in the wsse:SecurityHeader. Element Encryption SHOULD be used for encrypting the supporting tokens. > The syntax for the sp:SignedEncryptedSupportingTokens differs from the syntax of sp:SignedSupportingTokens only in the name of the assertion itself. All nested policy is as per the sp:SignedSupportingTokens assertion. -- This message was sent by Atlassian JIRA (v6.3.4#6332)