syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject syncope git commit: Some trivial fixes
Date Tue, 13 Jun 2017 19:05:22 GMT
Repository: syncope
Updated Branches:
  refs/heads/master 862835641 -> d5a5079cc


Some trivial fixes


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/d5a5079c
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/d5a5079c
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/d5a5079c

Branch: refs/heads/master
Commit: d5a5079ccb95b2c0d3faae8ba527572aebce78f0
Parents: 8628356
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Jun 13 17:30:58 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Jun 13 17:30:58 2017 +0100

----------------------------------------------------------------------
 .../apache/syncope/core/spring/security/AuthDataAccessor.java    | 2 +-
 .../syncope/core/spring/security/JWTAuthenticationFilter.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/d5a5079c/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java
----------------------------------------------------------------------
diff --git a/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java
index 79ba01b..c44ad36 100644
--- a/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java
+++ b/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java
@@ -169,7 +169,7 @@ public class AuthDataAccessor {
                 if (users.size() == 1) {
                     user = users.get(0);
                 } else {
-                    LOG.warn("Value {} provided for {} does not uniquely identifies an user",
+                    LOG.warn("Value {} provided for {} does not uniquely identify a user",
                             authentication.getName(), authAttrValues.get(i));
                 }
             }

http://git-wip-us.apache.org/repos/asf/syncope/blob/d5a5079c/core/spring/src/main/java/org/apache/syncope/core/spring/security/JWTAuthenticationFilter.java
----------------------------------------------------------------------
diff --git a/core/spring/src/main/java/org/apache/syncope/core/spring/security/JWTAuthenticationFilter.java
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/JWTAuthenticationFilter.java
index 3263abe..44202d1 100644
--- a/core/spring/src/main/java/org/apache/syncope/core/spring/security/JWTAuthenticationFilter.java
+++ b/core/spring/src/main/java/org/apache/syncope/core/spring/security/JWTAuthenticationFilter.java
@@ -53,7 +53,7 @@ public class JWTAuthenticationFilter extends OncePerRequestFilter {
     private SyncopeAuthenticationDetailsSource authenticationDetailsSource;
 
     @Autowired
-    private JwsSignatureVerifier jwsSignatureCerifier;
+    private JwsSignatureVerifier jwsSignatureVerifier;
 
     public void setAuthenticationEntryPoint(final AuthenticationEntryPoint authenticationEntryPoint)
{
         this.authenticationEntryPoint = authenticationEntryPoint;
@@ -91,7 +91,7 @@ public class JWTAuthenticationFilter extends OncePerRequestFilter {
 
         JwsJwtCompactConsumer consumer = new JwsJwtCompactConsumer(stringToken);
         try {
-            if (!consumer.verifySignatureWith(jwsSignatureCerifier)) {
+            if (!consumer.verifySignatureWith(jwsSignatureVerifier)) {
                 throw new BadCredentialsException("Invalid signature found in JWT");
             }
 


Mime
View raw message