Commit 20041524 authored by bmajor's avatar bmajor Committed by GitHub
Browse files

Merge pull request #7 from pdowler/master

fixed to use the correct standardID in availability checks
parents 1b5a372f 3f49c609
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ repositories {
sourceCompatibility = 1.7
group = 'org.opencadc'

version = '1.0'
version = '1.0.1'

dependencies {
    compile 'log4j:log4j:1.2.+'
+3 −3
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class ACIdentityManager implements IdentityManager
            public NumericPrincipal run() throws Exception
            {
                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);
                User newUser = userClient.createUser(x500Principal);
@@ -205,7 +205,7 @@ public class ACIdentityManager implements IdentityManager
                public Object run() throws Exception
                {
                    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.augmentSubject(subject);
@@ -233,7 +233,7 @@ public class ACIdentityManager implements IdentityManager
    {
        RegistryClient regClient = new RegistryClient();
        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);
        return new CheckWebService(availURL.toExternalForm());
    }
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public class AuthenticatorImpl implements Authenticator
    {
        RegistryClient regClient = new RegistryClient();
        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);
        return new CheckWebService(availURL.toExternalForm());
    }