cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1422882 - in /cxf/trunk/rt/rs/security/oauth-parent: oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
Date Mon, 17 Dec 2012 11:54:03 GMT
Author: sergeyb
Date: Mon Dec 17 11:54:02 2012
New Revision: 1422882

URL: http://svn.apache.org/viewvc?rev=1422882&view=rev
Log:
If OAuth permission restricts URI and the client fails to use a valid URI - issue the warning

Modified:
    cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java
    cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java?rev=1422882&r1=1422881&r2=1422882&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/filters/AbstractAuthFilter.java
Mon Dec 17 11:54:02 2012
@@ -224,8 +224,8 @@ public class AbstractAuthFilter {
             }
         }
         if (!foundValidScope) {
-            String message = "Invalid request URI";
-            LOG.fine(message);
+            String message = "Invalid request URI: " + request.getRequestURL().toString();
+            LOG.warning(message);
         }
         return foundValidScope;
     }

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java?rev=1422882&r1=1422881&r2=1422882&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
Mon Dec 17 11:54:02 2012
@@ -122,8 +122,8 @@ public class OAuthRequestFilter extends 
             }
         }
         if (!foundValidScope) {
-            String message = "Invalid request URI";
-            LOG.fine(message);
+            String message = "Invalid request URI: " + request.getRequestURL().toString();
+            LOG.warning(message);
         }
         return foundValidScope;
     }



Mime
View raw message