You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by gr...@apache.org on 2020/08/31 10:53:55 UTC
[ofbiz-plugins] branch trunk updated: Fixed: Issue with checking
Authentication Scheme(OFBIZ-11328)
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 <gi...@hotwaxsystems.com>
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() + " ");
}
/**