[ofbiz-plugins] branch trunk updated: Fixed: Issue with checking Authentication Scheme(OFBIZ-11328)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Fixed: Issue with checking Authentication Scheme(OFBIZ-11328)

grv-2
This is an automated email from the ASF dual-hosted git repository.

grv pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 3174bd9  Fixed: Issue with checking Authentication Scheme(OFBIZ-11328)
3174bd9 is described below

commit 3174bd92ec9b46fc781cd9550955bdaeece9af54
Author: Girish Vasmatkar <[hidden email]>
AuthorDate: Mon Aug 31 16:23:29 2020 +0530

    Fixed: Issue with checking Authentication Scheme(OFBIZ-11328)
---
 .../main/java/org/apache/ofbiz/ws/rs/security/auth/APIAuthFilter.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/security/auth/APIAuthFilter.java b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/security/auth/APIAuthFilter.java
index 1645bb5..a39b11a 100644
--- a/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/security/auth/APIAuthFilter.java
+++ b/ofbiz-rest-impl/src/main/java/org/apache/ofbiz/ws/rs/security/auth/APIAuthFilter.java
@@ -93,7 +93,8 @@ public class APIAuthFilter implements ContainerRequestFilter {
      * @return
      */
     private boolean isTokenBasedAuthentication(String authorizationHeader) {
-        return authorizationHeader != null && authorizationHeader.toLowerCase().startsWith(AuthenticationScheme.BEARER.getScheme() + " ");
+        return authorizationHeader != null
+                && authorizationHeader.toLowerCase().startsWith(AuthenticationScheme.BEARER.getScheme().toLowerCase() + " ");
     }
 
     /**