Skip to content
Browse files

#11 - Modifying LastFmPseudoOAuth2Filter to apply to both signin and …

…connect callback urls
  • Loading branch information...
1 parent 89fa754 commit bf19f55b4b906f79cd831b12bdf580661b19669b @michaellavelle committed Oct 21, 2011
View
3 .../org/springframework/social/lastfm/pseudooauth2/connect/web/LastFmPseudoOAuth2Filter.java
@@ -78,7 +78,8 @@ private String getToken(ServletRequest request) {
* @return true if processing a LastFm callback
*/
private boolean isLastFmCallback(HttpServletRequest request) {
- return (request.getMethod().toLowerCase().equals("get") && request.getRequestURI().equals(signinCallbackPath) || request.getRequestURI().equals(connectCallbackPath))
+ return (request.getMethod().toLowerCase().equals("get") && (
+ request.getRequestURI().equals(signinCallbackPath) || request.getRequestURI().equals(connectCallbackPath)))
&& getToken(request) != null;
}

0 comments on commit bf19f55

Please sign in to comment.
Something went wrong with that request. Please try again.