You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2022/03/23 11:36:38 UTC

[cxf] branch 3.4.x-fixes updated: Use constant in SAMLUtils

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch 3.4.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.4.x-fixes by this push:
     new 5b2e4c3  Use constant in SAMLUtils
5b2e4c3 is described below

commit 5b2e4c3aea87f84c77ee4e842713c370c41fa8ef
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Mar 23 11:12:50 2022 +0000

    Use constant in SAMLUtils
    
    (cherry picked from commit 1e90f53f720b76c2dbac910e58ef0b291f98c032)
    (cherry picked from commit a35635e26865624d9705703398648f205000e9ec)
---
 .../main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java b/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
index 692d075..1692bef 100644
--- a/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
+++ b/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
@@ -167,8 +167,8 @@ public final class SAMLUtils {
                     audiences.add((String)msg.get(org.apache.cxf.message.Message.REQUEST_URI));
                 }
 
-                if (msg.getContextualProperty("javax.xml.ws.wsdl.service") != null) {
-                    audiences.add(msg.getContextualProperty("javax.xml.ws.wsdl.service").toString());
+                if (msg.getContextualProperty(Message.WSDL_SERVICE) != null) {
+                    audiences.add(msg.getContextualProperty(Message.WSDL_SERVICE).toString());
                 }
             }
             return audiences;