chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1737847 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java
Date Tue, 05 Apr 2016 15:24:21 GMT
Author: fmui
Date: Tue Apr  5 15:24:21 2016
New Revision: 1737847

URL: http://svn.apache.org/viewvc?rev=1737847&view=rev
Log:
fixed Authorization header in OAuth client

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java?rev=1737847&r1=1737846&r2=1737847&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/OAuthAuthenticationProvider.java
Tue Apr  5 15:24:21 2016
@@ -212,7 +212,7 @@ public class OAuthAuthenticationProvider
             headers = new HashMap<String, List<String>>();
         }
 
-        headers.put("Authorization", Collections.singletonList(TOKEN_TYPE_BEARER + " " +
getAccessToken()));
+        headers.put("Authorization", Collections.singletonList("Bearer " + getAccessToken()));
 
         return headers;
     }



Mime
View raw message