Support Multiple Realms for DefaultOrg
[aaf/authz.git] / auth / auth-service / src / main / java / org / onap / aaf / auth / service / validation / ServiceValidator.java
index 446bf46..a6bbbb0 100644 (file)
@@ -153,7 +153,7 @@ public class ServiceValidator extends Validator {
                                str = str.substring(0,idx);
                        }
                        
-                       if(cd.id.endsWith(org.getRealm())) {
+                       if(org.supportsRealm(cd.id)) {
                                if(isNew && (str=org.isValidID(trans, str)).length()>0) {
                                        msg(cd.id,str);
                                }