From 97083efad62444366028813afa7e8e56a12ab8b6 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Wed, 25 Apr 2018 15:22:38 -0500 Subject: Update scripts per HEAT validation Issue-ID: AAF-256 Change-Id: Ib44e0bc99072840a389522746983fbefbbce6744 Signed-off-by: Instrumental --- .../src/main/java/org/onap/aaf/org/DefaultOrg.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'auth/auth-deforg/src') diff --git a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrg.java b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrg.java index 935f99bf..ac2105f6 100644 --- a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrg.java +++ b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrg.java @@ -680,7 +680,17 @@ public class DefaultOrg implements Organization { } @Override public boolean supportsRealm(final String r) { - return supportedRealms.contains(extractRealm(r)) || r.endsWith(realm); + if(r.endsWith(realm)) { + return true; + } else { + String erealm = extractRealm(r); + for(String sr : supportedRealms) { + if(erealm.startsWith(sr)) { + return true; + } + } + } + return false; } @Override -- cgit 1.2.3-korg