knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject knox git commit: KNOX-1045 - Knox Token Service has a trailing whitespace for the token_type attribute
Date Mon, 16 Oct 2017 14:30:13 GMT
Repository: knox
Updated Branches:
  refs/heads/master 92b1505a7 -> 6acfa43f4


KNOX-1045 - Knox Token Service has a trailing whitespace for the token_type attribute


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

Branch: refs/heads/master
Commit: 6acfa43f419b7dfc579988efce32091f8349e0e7
Parents: 92b1505
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Sep 29 14:34:53 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Oct 16 15:27:31 2017 +0100

----------------------------------------------------------------------
 .../org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/6acfa43f/gateway-service-knoxtoken/src/main/java/org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java
----------------------------------------------------------------------
diff --git a/gateway-service-knoxtoken/src/main/java/org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java
b/gateway-service-knoxtoken/src/main/java/org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java
index 8dddf02..df8288a 100644
--- a/gateway-service-knoxtoken/src/main/java/org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java
+++ b/gateway-service-knoxtoken/src/main/java/org/apache/hadoop/gateway/service/knoxtoken/TokenResource.java
@@ -50,7 +50,7 @@ public class TokenResource {
   private static final String TOKEN_TYPE = "token_type";
   private static final String ACCESS_TOKEN = "access_token";
   private static final String TARGET_URL = "target_url";
-  private static final String BEARER = "Bearer ";
+  private static final String BEARER = "Bearer";
   private static final String TOKEN_TTL_PARAM = "knox.token.ttl";
   private static final String TOKEN_AUDIENCES_PARAM = "knox.token.audiences";
   private static final String TOKEN_TARGET_URL = "knox.token.target.url";


Mime
View raw message