Browse files

CFID-403: [#35352705] separate CF login server from uaa

  • Loading branch information...
1 parent 5bd0f13 commit b92ecdad8dc0452e93708d04266e6c28a203030b @dsyer dsyer committed with daleolds Sep 3, 2012
View
1 .gitignore
@@ -6,6 +6,7 @@ target/
*/src/main/java/META-INF/
*/src/main/webapp/META-INF/
*/src/main/*/WEB-INF/lib/
+src/main/resources/profiles/dev/
out/
.access_token
.result
View
7 src/main/java/org/cloudfoundry/identity/uaa/login/RemoteUaaController.java
@@ -220,6 +220,13 @@ public ModelAndView startAuthorization(HttpServletRequest request, @RequestParam
return passthru(request, entity, model);
}
+ @RequestMapping(value = { "/varz", "/varz/**", "/healthz" })
+ @ResponseBody
+ public ResponseEntity<byte[]> varz(HttpServletRequest request, HttpEntity<byte[]> entity,
+ Map<String, Object> model, SessionStatus sessionStatus) throws Exception {
+ return passthru(request, entity, model);
+ }
+
@ExceptionHandler(OAuth2Exception.class)
public ModelAndView handleOAuth2Exception(OAuth2Exception e, ServletWebRequest webRequest) throws Exception {
logger.info("OAuth2 error" + e.getSummary());
View
3 src/main/webapp/WEB-INF/spring-servlet.xml
@@ -25,6 +25,9 @@
<sec:http pattern="/resources/**" security="none" />
<sec:http pattern="/favicon.ico" security="none" />
+ <sec:http pattern="/varz/**" security="none" />
+ <sec:http pattern="/varz" security="none" />
+ <sec:http pattern="/healthz" security="none" />
<sec:http pattern="/login" security="none" />
<sec:http pattern="/login_info" security="none" />
<sec:http pattern="/oauth/token" security="none" />

0 comments on commit b92ecda

Please sign in to comment.