summaryrefslogtreecommitdiffstats
path: root/auth/auth-deforg
diff options
context:
space:
mode:
authorInstrumental <jcgmisc@stl.gathman.org>2018-04-25 15:22:38 -0500
committerInstrumental <jcgmisc@stl.gathman.org>2018-04-25 15:22:42 -0500
commit97083efad62444366028813afa7e8e56a12ab8b6 (patch)
treefe4745c4af1f6817263ecc8d99d9e98d0e8e48fd /auth/auth-deforg
parent1efda07f5d8e14d028fddf62dec62c95af9c7342 (diff)
Update scripts per HEAT validation
Issue-ID: AAF-256 Change-Id: Ib44e0bc99072840a389522746983fbefbbce6744 Signed-off-by: Instrumental <jcgmisc@stl.gathman.org>
Diffstat (limited to 'auth/auth-deforg')
-rw-r--r--auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrg.java12
1 files changed, 11 insertions, 1 deletions
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