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:26:53 UTC

[cxf] branch 3.5.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.5.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


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

commit a35635e26865624d9705703398648f205000e9ec
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)
---
 .../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 bd57e53..396134e 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
@@ -162,8 +162,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;