From fc825e84ea98fceb4f8b2c8d1f5f839b7cf1c488 Mon Sep 17 00:00:00 2001 From: mitchellsundt Date: Mon, 27 Feb 2012 10:30:10 -0800 Subject: [PATCH] Add or clarify docs for methods or classes based upon Spring classes. --- .../common/security/spring/Oauth2AuthenticationToken.java | 1 + .../common/security/spring/Oauth2ResourceFilter.java | 2 ++ .../TargetUrlRequestAwareAuthenticationSuccessHandler.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/opendatakit/common/security/spring/Oauth2AuthenticationToken.java b/src/main/java/org/opendatakit/common/security/spring/Oauth2AuthenticationToken.java index 0045ca926d..e0af6e1664 100644 --- a/src/main/java/org/opendatakit/common/security/spring/Oauth2AuthenticationToken.java +++ b/src/main/java/org/opendatakit/common/security/spring/Oauth2AuthenticationToken.java @@ -25,6 +25,7 @@ /** * Authentication that is returned by Oauth 2.0 processing. + * Structure liberally copied from Spring OpenId and Oauth2 authentication token classes. * * @author mitchellsundt@gmail.com * diff --git a/src/main/java/org/opendatakit/common/security/spring/Oauth2ResourceFilter.java b/src/main/java/org/opendatakit/common/security/spring/Oauth2ResourceFilter.java index 72e3655fd3..b43c16d493 100644 --- a/src/main/java/org/opendatakit/common/security/spring/Oauth2ResourceFilter.java +++ b/src/main/java/org/opendatakit/common/security/spring/Oauth2ResourceFilter.java @@ -72,6 +72,8 @@ * Ideally, we would have a custom scope in the Google Oauth 2.0 grant * for this Aggregate instance. That is not yet possible. * + * parseToken() is copied verbatim from Spring Security Oauth2 code. + * * @author mitchellsundt@gmail.com * */ diff --git a/src/main/java/org/opendatakit/common/security/spring/TargetUrlRequestAwareAuthenticationSuccessHandler.java b/src/main/java/org/opendatakit/common/security/spring/TargetUrlRequestAwareAuthenticationSuccessHandler.java index beeb5778b4..ffe0525710 100644 --- a/src/main/java/org/opendatakit/common/security/spring/TargetUrlRequestAwareAuthenticationSuccessHandler.java +++ b/src/main/java/org/opendatakit/common/security/spring/TargetUrlRequestAwareAuthenticationSuccessHandler.java @@ -31,7 +31,7 @@ import org.springframework.util.StringUtils; /** - * Copied from SavedRequestAwareAuthenticationSuccessHandler + * Copied from Spring Security SavedRequestAwareAuthenticationSuccessHandler * Prefers using the redirect target URL (coming in as a query string parameter) * over the saved request URL. *