Changeset 2372


Ignore:
Timestamp:
11/26/12 15:22:24 (12 years ago)
Author:
twagoo
Message:

Made service URL configurable through spring and updated AS port

Location:
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/servlet/FooServlet.java

    r2370 r2372  
    2929
    3030    private static final long serialVersionUID = 1L;
    31     final private static String apiUrlSecure = "http://localhost:8090/secure";
     31    private String apiUrlSecure;
    3232    // for access to OAuth2-protected resources, set by spring-security-oauth
    3333    private OAuth2RestTemplate oauth2RestService;
     
    7979        oauth2RestService = a;
    8080    }
     81
     82    public void setApiUrlSecure(String apiUrlSecure) {
     83        this.apiUrlSecure = apiUrlSecure;
     84    }
    8185}
  • ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/webresources/WEB-INF/spring-servlet.xml

    r2371 r2372  
    5252            <oauth:rest-template resource="fooService" />
    5353        </property>     
     54        <property name="apiUrlSecure" value="http://localhost:8090/secure" />
    5455    </bean>
    5556 
     
    5960                    client-id="compreg123"
    6061                    client-secret="xyz"
    61                     user-authorization-uri="https://localhost:8082/oauth/authorize"
    62                     access-token-uri="https://localhost:8082/oauth/access_token"
     62                    user-authorization-uri="https://localhost:8092/oauth/authorize"
     63                    access-token-uri="https://localhost:8092/oauth/access_token"
    6364                    scope="read" />
    6465</beans>
Note: See TracChangeset for help on using the changeset viewer.