Changeset 2372
- Timestamp:
- 11/26/12 15:22:24 (12 years ago)
- 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 29 29 30 30 private static final long serialVersionUID = 1L; 31 final private static String apiUrlSecure = "http://localhost:8090/secure";31 private String apiUrlSecure; 32 32 // for access to OAuth2-protected resources, set by spring-security-oauth 33 33 private OAuth2RestTemplate oauth2RestService; … … 79 79 oauth2RestService = a; 80 80 } 81 82 public void setApiUrlSecure(String apiUrlSecure) { 83 this.apiUrlSecure = apiUrlSecure; 84 } 81 85 } -
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/webresources/WEB-INF/spring-servlet.xml
r2371 r2372 52 52 <oauth:rest-template resource="fooService" /> 53 53 </property> 54 <property name="apiUrlSecure" value="http://localhost:8090/secure" /> 54 55 </bean> 55 56 … … 59 60 client-id="compreg123" 60 61 client-secret="xyz" 61 user-authorization-uri="https://localhost:80 82/oauth/authorize"62 access-token-uri="https://localhost:80 82/oauth/access_token"62 user-authorization-uri="https://localhost:8092/oauth/authorize" 63 access-token-uri="https://localhost:8092/oauth/access_token" 63 64 scope="read" /> 64 65 </beans>
Note: See TracChangeset
for help on using the changeset viewer.