Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…connect callback urls
  • Loading branch information...
commit bf19f55b4b906f79cd831b12bdf580661b19669b 1 parent 89fa754
@michaellavelle authored
View
3  src/main/java/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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.