Commit 3f49c609 authored by Patrick Dowler's avatar Patrick Dowler
Browse files

fixed to use the correct standardID in availability checks

parent 1b5a372f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ repositories {
sourceCompatibility = 1.7
sourceCompatibility = 1.7
group = 'org.opencadc'
group = 'org.opencadc'


version = '1.0'
version = '1.0.1'


dependencies {
dependencies {
    compile 'log4j:log4j:1.2.+'
    compile 'log4j:log4j:1.2.+'
+3 −3
Original line number Original line Diff line number Diff line
@@ -109,7 +109,7 @@ public class ACIdentityManager implements IdentityManager
            public NumericPrincipal run() throws Exception
            public NumericPrincipal run() throws Exception
            {
            {
                LocalAuthority localAuth = new LocalAuthority();
                LocalAuthority localAuth = new LocalAuthority();
                URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toString());
                URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString());


                UserClient userClient = new UserClient(serviceURI);
                UserClient userClient = new UserClient(serviceURI);
                User newUser = userClient.createUser(x500Principal);
                User newUser = userClient.createUser(x500Principal);
@@ -205,7 +205,7 @@ public class ACIdentityManager implements IdentityManager
                public Object run() throws Exception
                public Object run() throws Exception
                {
                {
                    LocalAuthority localAuth = new LocalAuthority();
                    LocalAuthority localAuth = new LocalAuthority();
                    URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toString());
                    URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString());


                    UserClient userClient = new UserClient(serviceURI);
                    UserClient userClient = new UserClient(serviceURI);
                    userClient.augmentSubject(subject);
                    userClient.augmentSubject(subject);
@@ -233,7 +233,7 @@ public class ACIdentityManager implements IdentityManager
    {
    {
        RegistryClient regClient = new RegistryClient();
        RegistryClient regClient = new RegistryClient();
        LocalAuthority localAuth = new LocalAuthority();
        LocalAuthority localAuth = new LocalAuthority();
        URI serviceURI = localAuth.getServiceURI(Standards.GMS_GROUPS_01.toString());
        URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString());
        URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON);
        URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON);
        return new CheckWebService(availURL.toExternalForm());
        return new CheckWebService(availURL.toExternalForm());
    }
    }
+1 −1
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ public class AuthenticatorImpl implements Authenticator
    {
    {
        RegistryClient regClient = new RegistryClient();
        RegistryClient regClient = new RegistryClient();
        LocalAuthority localAuth = new LocalAuthority();
        LocalAuthority localAuth = new LocalAuthority();
        URI serviceURI = localAuth.getServiceURI(Standards.GMS_GROUPS_01.toString());
        URI serviceURI = localAuth.getServiceURI(Standards.UMS_USERS_01.toASCIIString());
        URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON);
        URL availURL = regClient.getServiceURL(serviceURI, Standards.VOSI_AVAILABILITY, AuthMethod.ANON);
        return new CheckWebService(availURL.toExternalForm());
        return new CheckWebService(availURL.toExternalForm());
    }
    }